You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(syncmodutil): strip conflicting destination replaces before pinning
Per review feedback on #983: emitting a replace block without first
removing pre-existing replace directives in the destination for the same
module produces duplicates, causing `go mod tidy` to fail with "multiple
replacements for <module>". Handle both forms in the destination: single
line (`replace foo => bar v1`) and lines inside an existing
`replace (...)` block. Replaces for modules the source does not touch
(destination-specific overrides, such as local-path replaces) are
preserved.
Signed-off-by: Yi Nuo <218099172+yi-nuo426@users.noreply.github.com>
0 commit comments