-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: turn dynamic lib into static #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. we'd better don't commit the binary to github (discussed with @colin and seems acceptable)
2. this PR is platform dependent (it only supports darwin_arm64
& linux_amd64
) (what about darwin_amd64
& linux_arm64
?)
For 1, this PR uses the same approach as https://github.com/valyala/gozstd, otherwise, other repos all need to maintain the workflow to download specific Another approach is https://github.com/DataDog/zstd, it copies all c code into the repo, which is basically the same. but need to sync our customized params with For 2, yeah we can add them. |
OK |
btw,
|
did you run |
got it. met another issue. will fix it later. |
many other incompatible issues built by linux-musl, e.g.,
btw, need a laptop or vm to build darwin amd64. @HAOYUatHZ |
BTW, the reason why I think it's not good to make it platform-dependent is:
|
yeah. I also met this (building on the fly and running unit tests), the golang linker's platform version is older than os's version. But I think it's not the problem of this method. Using .so files and .a files would also meet this problem. |
Previously I decided to change to use this repo (directly using C code): https://github.com/DataDog/zstd thus closing this PR. Later @georgehao mentioned that directly using C lib will also introduce many incompatible issues, the same as The above concern makes sense, thus I think we can refine and continue this method. will add some descriptions in readme like the link: https://github.com/valyala/gozstd?tab=readme-ov-file#faq |
929e583
to
296d9c6
Compare
existence and management of |
This PR turn the dynamic lib (.so) for scroll's zstd into static lib.
It also include the precompiled of
linux_amd64
underlibzstd