-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why go install std? #407
Comments
I don't recall exactly why we added it (I think to prevent Go from needing to immediately compile the stdlib when the first Perhaps we can verify that the before/after of running that command causes no change? I tried building an image locally without that, then running
Historically, this was disabled unilaterally on Alpine due to golang/go#14481, but it looks like we could maybe enable it now? I'm hesitant because it should be reasonably easy (and fast) for users to compile for themselves but isn't needed by most use cases for the image (see also #250 (comment)). |
Those might just be "last updated timestamp" changes. From what I can tell |
Doh, you're correct - I used Edit: that was in 1.17, but I just tested with the same result in 1.16 |
One thing I did want to mention on this point (re: I can understand the hesitancy for Alpine specifically, but what about Debian? |
In Debian, we're able to use Go's published release tarballs for all the architectures which support |
Ah, just checked for linux/amd64, and you are correct. Did not know that. |
The Dockerfile currently runs
go install std
, because "the official binary release tarballs do".golang/1.17/alpine3.15/Dockerfile
Lines 91 to 92 in e773873
What exactly is the point of this? The make.bash script will already compile the standard library packages.
It could be useful to precompile with
-race
, but this is unconditionally skipped right now.golang/1.17/alpine3.15/Dockerfile
Lines 93 to 94 in e773873
The text was updated successfully, but these errors were encountered: