Compiler fetching offline modules during build causing slow compiles #29856
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes latest stable release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
After enabling modules support go run and go build take minuets to compile. I have ran the
go mod vendor
to create the vendor folder. Without modules enabled compile time is less than a second. They do successfully compile.After running verbose the compiler is trying to fetch offline modules with the following message
https fetch failed: Get https://mygit.net/myapp/pb/users?go-get=1: dial tcp gitipaddress:443: i/o timeout
In the
go.mod
I have thereplace
option with those modulesWhat did you expect to see?
faster compiling times before modules. From what I have studies the replace should look locally and not fetch.
What did you see instead?
slow compile times.
The text was updated successfully, but these errors were encountered: