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
I replaced a dependency with a modified version in a module A: pace/bricks@be63835
When I do go mod vendor the modified version correctly appears in the vendor directory. If I however, in another module B, depend on that module A, go mod vendor places the original and not the modified version of the dependency in the vendor directory.
So it seems that replacements only work on the module that introduces them, not on other modules.
What did you expect to see?
Module A and module B should have the same version of the dependency in the vendor directory.
What did you see instead?
Module A has the modified dependency, module B the original.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Untested.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I replaced a dependency with a modified version in a module A: pace/bricks@be63835
When I do
go mod vendor
the modified version correctly appears in the vendor directory. If I however, in another module B, depend on that module A,go mod vendor
places the original and not the modified version of the dependency in the vendor directory.So it seems that replacements only work on the module that introduces them, not on other modules.
What did you expect to see?
Module A and module B should have the same version of the dependency in the vendor directory.
What did you see instead?
Module A has the modified dependency, module B the original.
The text was updated successfully, but these errors were encountered: