mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-05 11:56:31 +00:00
cee4515c2e
fix(gomod): handle bare ../ replace paths in gomodTidyAll When a go.mod file uses a replace directive pointing to the parent directory with no sub-path (e.g. `replace example.com/root => ../`), gomodTidyAll would silently skip running `go mod tidy` on that module and any of its dependents. The root cause was in the `localReplace` regex where the localPath capture group used `\S+` (one or more non-whitespace), so `../` — with nothing after the slash — was never matched. Only paths like `../subdir` were picked up. Changing `\S+` to `\S*` allows zero-or-more trailing characters, so bare `../` and `./` now parse correctly and the dependency graph is built properly.