A missing dependency currently blocks go get -u from working at all. For a concrete example, see #28424 (comment).
go mod tidy and go mod vendor have a -e flag that means: "attempt to proceed despite errors
encountered while loading packages". I propose that we add an analogous -e flag to go get -u.
This would make it easier to start an upgrade by running go get -e -u ./... and then fixing up the build failures through subsequent code changes (such as adjusting import statements within the main module). That seems like a completely reasonable workflow to me.
This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group
A missing dependency currently blocks
go get -u
from working at all. For a concrete example, see #28424 (comment).go mod tidy
andgo mod vendor
have a-e
flag that means: "attempt to proceed despite errorsencountered while loading packages". I propose that we add an analogous
-e
flag togo get -u
.cc @bcmills
The text was updated successfully, but these errors were encountered: