Skip to content
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

cmd/go: 'go get' sometimes adds spurious dependencies #44795

Closed
bcmills opened this issue Mar 4, 2021 · 0 comments
Closed

cmd/go: 'go get' sometimes adds spurious dependencies #44795

bcmills opened this issue Mar 4, 2021 · 0 comments
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Mar 4, 2021

I've made a number of fixes to the mvs package for Go 1.17, but didn't file an issue for them yet because they were discovered incidentally to #36460.

I'm filing this issue mostly so that I have something to point to if someone notices these bugs in previous versions, so that they can tell when the bugs were fixed.

There were two bugs affecting cmd/go:

  • CL 294294: mvs.Downgrade could introduce spurious dependencies due to the downgraded modules being upgraded to “hidden” versions (such as pseudo-versions) by other downgraded dependencies.
  • CL 290770: The combination of mvs.Upgrade and mvs.Downgrade could introduce spurious new or upgraded dependencies, introduced as transitive dependencies of upgraded modules that were subsequently downgraded.

In addition, there were fixes for three mvs bugs that did not affect cmd/go due to how cmd/go was invoking mvs:

  • CL 266339 (Go 1.16): mvs functions sometimes did not omit modules whose selected version is none.
  • CL 287632: mvs.Req did not suppress duplicate paths in the base argument.
  • CL 287633: mvs.Downgrade did not retain certain transitive dependencies.
@bcmills bcmills added NeedsFix The path to resolution is known, but the work has not been done. modules labels Mar 4, 2021
@bcmills bcmills added this to the Go1.17 milestone Mar 4, 2021
@bcmills bcmills self-assigned this Mar 4, 2021
@bcmills bcmills closed this as completed Apr 28, 2021
@golang golang locked and limited conversation to collaborators Apr 28, 2022
@rsc rsc unassigned bcmills Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants