Proposal: add a flag to go get
to respect replace directives
#47380
Labels
Milestone
go get
to respect replace directives
#47380
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputProposal
go get <url>
does not respectreplace
directives in the top-levelgo.mod
of<url>
. #30354 has been referenced by nearly 40 issues in other repositories, many/most of which boil down to "this doesn't build becausereplace
directives aren't respected bygo get <url>
. Clearly many people expectreplace
directives in a top level module to be respected when that top-level module is fetched withgo get
. So I propose to add a flag togo get
to enable this behavior.The text was updated successfully, but these errors were encountered: