-
Notifications
You must be signed in to change notification settings - Fork 63
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
Build fails on Alpine due to bundled .a files #20
Comments
In this case you should run |
OK, thanks! For anyone else having this issue, here is an updated one-liner which can be placed in your
The one-liner makes a marker file |
FYI, bundle for alpine linux with musl is supported now, you have to provide build tag for it. It can be done with command: https://github.com/valyala/gozstd/blob/master/libzstd_linux_musl_amd64.go |
Should be |
Firstly, thanks a lot for making this. I was experiencing DataDog/zstd#22 and switching over to this library seems to have solved that problem, with a minimum of code changes.
My issue is that I deploy my golang application in docker containers. I use Alpine Linux as my deployment base in order to reduce the container sizes. Because Alpine uses musl instead of glibc, the pre-compiled binaries you distribute cannot work with Alpine. Instead, at build time errors like this are generated:
I can work around this by putting in special case code into my build process just for this module, something like
...but it feels quite unusual to have to do that.
What changes would be required to avoid having to distribute a binary library?
The text was updated successfully, but these errors were encountered: