Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think that this is enough to safely distribute a binary. As I search around, I find a bunch of information suggesting that there are problems statically linking against glibc. However, we have prior art for linking against musl:
https://github.com/linkerd/linkerd2/blob/b16f3f0825b8639b889501cb24583cb9d3d22002/policy-controller/Dockerfile#L13-L22
https://github.com/olix0r/hokay/blob/ad64b990bf70cebbe939d5a6e81d16ac837ce443/.github/workflows/release.yml#L56-L150
This requires some CI surgery, but I can port one of these over.
Before doing that, though, I want to confirm that the original problem we're solving can't be more easily solved by rebuilding the binaries against a newer version of glibc.
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.
Ah. It looks like distributing binaries statically linked against GNU libc (LGPLv2.1) may have licensing implications, the extent of which I do not immediately understand.