cmd/go: 'go get all' no longer works when a deleted transitive dependency is no longer needed after upgrading #47303
Labels
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go get -d all
used to work in some situations in which it no longer does.It appears that as of Go 1.16, it first resolves
all
to a package pattern, then attempts to install the latest version of each such package. If some of those packages have been deleted, it fails.In Go 1.15 and earlier, it did something closer to what
go get -u -t ./...
does today: it upgraded (some subset of) direct imports and then upgraded transitive dependencies from there.As a workaround,
go get -d -u -t ./...
achieves essentially the same set of upgrades, butgo get -d all
ought to be a reasonable alternative.The text was updated successfully, but these errors were encountered: