-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: warn when go get
removes a module that provides a package in the import graph?
#30084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
go mod vendor
silently uprages go mod vendor
silently upgrades the dependency version
go mod vendor
silently upgrades the dependency versiongo mod vendor
silently upgrades the dependency version
You've left something out: there are It is possible that the requirement is coming in via some other dependency that was previously missing from your
|
unfortunately I can not recreate the problem on the minimal project. on the project I have this problem I can see and hope this helps |
|
That seems to confirm the hypothesis that there is some transitive dependency that imposes a higher minimum version. In the larger repo, try (in order):
If the version is through a transitive dependency that cannot be downgraded, then that dependency will not be listed in step (2), and the version will bump back up again at step (4) and remain stable thereafter. |
yeah, this is the source of my problem: https://github.com/influxdata/platform/blob/master/go.mod#L99. thank you very much for your help. do you think it might be useful to have a warning message in this case?
but it does update |
I'm not sure, but it's certainly worth considering. I'll retitle the issue accordingly. |
go mod vendor
silently upgrades the dependency versiongo get
removes a module that provides a package in the import graph?
We don't plan to do this. Closing the issue. Please reopen if it's still a problem. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes it does
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
github.com/miekg/dns v0.0.0-20171124081448-cdb76b64a347 vendored
What did you see instead?
github.com/miekg/dns v1.1.1 vendored
The text was updated successfully, but these errors were encountered: