-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Hugo binary no longer statically linked on Linux (starting 0.20.3) #3382
Comments
It would be even better if you could provide me with the correct ld flags/or a reference. |
Thanks; I will check to see how Goxc handle this (which is what we replaced), to make sure I don't introduce even more mess. |
Note to self: New vs old Linux:
|
In Hugo 0.20.3, the released binaries for Linux was no longer statically linked. This commit fixes that. Fixes #3382
I have released a new version, but I had to reopen this issue. A build on Linux still shows up as dynamically linked, so I built it on |
So this works by doing it directly:
I assume Goreleaser is doing some funky stuff ... |
my bad, docs were inducing to error. Sorry. Thanks @bep for for the PR :) |
@bep this now appears to happen with the extended version of hugo that includes SASS processing. I can't run hugo extended on alpine anymore. The non-extended version works perfectly, though. |
Same for me - this seems to be "by design choice" (as per said in other issues), but i would then need the list of expected dependencies (was not able to find that anywhere, neigher here or on the forum, if someone has the detailled informations related to this topic, thanks for providing them). |
I found a workaround by installing glibc: https://github.com/dettmering/hugo-build/blob/master/Dockerfile Maybe this helps. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi there
Since version 0.20.3, it appears the Hugo binary is no longer being statically linked.
This means when running Hugo within an alpine container, 'no such file or directory' is output (because the linked libraries are not present). I'm assuming this is to do with the transition to using goreleaser, as part of this issue: #3358
From a quick glance, it looks like goreleaser allows us to specify ld flags. etc for use when building, so this should be possible!
Thanks
The text was updated successfully, but these errors were encountered: