Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCompiler fetching offline modules during build causing slow compiles #29856
Comments
This comment has been minimized.
This comment has been minimized.
This seems like a duplicate of #27859, which has been marked as fixed for 1.12. Could you try usnig 1.12beta2? |
agnivade
added
the
WaitingForInfo
label
Jan 22, 2019
This comment has been minimized.
This comment has been minimized.
Closing as duplicate of #27859. |
bcmills
closed this
Jan 22, 2019
This comment has been minimized.
This comment has been minimized.
1.12beta2 does fix the issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tvarwig commentedJan 21, 2019
•
edited
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.