/ go Public
cmd/go: 'go get -d all' no longer works when a deleted transitive dependency is no longer needed after upgrading #47303
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
go get -d allused to work in some situations in which it no longer does.
It appears that as of Go 1.16, it first resolves
allto 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, but
go get -d allought to be a reasonable alternative.
The text was updated successfully, but these errors were encountered: