-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Linux amd64 build could potentially be fully static #2555
Comments
whats alpine, also define doesn't run. |
I'm guessing this:
(http://www.blang.io/posts/2015-04_golang-alpine-build-golang-binaries-for-alpine-linux/) I see that as a quirk in Alpine; someone who uses it needs to create a build for it. |
Huh? Build a static binary like in your link:
|
@calmh: I think the quote you're referencing won't matter if you build a static binary to deployed everywhere. |
Well I think there are reasons why we don't build a static binary. |
Can you please elaborate? On Sun, Dec 6, 2015 at 3:03 PM, Audrius Butkevicius <
|
I think if we provide a fully static build, that potentially raises the bar of what's the minimum requirements required to run it (I think it's something todo with SSE instructions, but not sure how that fits into the static build question), but @calmh knows better. |
So my reaction was the same, and I've been doing a bit of digging. The main thing we lose with a static build is access to the OS resolver library. This is an issue on Windows and Mac where somewhat exotic name lookup techniques are commonplace. On Mac we also lose access to the certificate store, which is critical. This is why we have native builders there. However it doesn't seem like we lose anything relevant on Linux so we could potentially go fully static there. The 32 bit build already is, because it wants to run on peoples crappy NAS distributions that have libc from the 19th century or thereabout. |
Ya, I was meaning static just for the linux binaries, not for all
|
The linux builder now builds statics. Lets see how that works out. |
I'm not sure what dependency I'm missing, but it doesn't on alpine 3.2 for me.
The text was updated successfully, but these errors were encountered: