cmd/go: replace directive causes build to take 30 seconds #29920
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
imported
golang.org/x/crypto/bcrypt
in my programalias
golang.org/x/[email protected]
github.com/golang/crypto@latest
withgo mod
Here is the repo to reproduce the problem.
You can find detailed description and my thoughts in the README file.
What did you expect to see?
go run main.go
works as normal.What did you see instead?
go run main.go
takes around 30 seconds to print out the result of my simple program,while
go run -mod=vendor main.go
works well.The text was updated successfully, but these errors were encountered: