Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: add option to ignore local replace/exclude directives #24666
If you have a go.mod with replace/exclude directives, those are used when building that module as the top-level target but not when used as a dependency. It might be helpful to have a command-line build flag that means "ignore those even in the top-level module" so that you can test more easily in the configuration users will see.
Note that change https://golang.org/cl/126696 states 'Fixes #24666' (this issue), which is presumably what triggered gopherbot to close this issue, but as far I as can see from quick look it looks like the piece of the CL related to this particular issue was in the first patch for the change but then (purposefully) dropped during the review process.
Not sure if the 'Fixes #24666' in the CL was left purposefully or accidentally, but at least wanted to add this comment here indicating that -mod=release does not seem to exist on
Description from the original patch: