Skip to content
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

Statically link Linux binary with musl #893

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

twpayne
Copy link
Owner

@twpayne twpayne commented Sep 28, 2020

Fixes #892.

@@ -62,7 +65,7 @@ jobs:
- name: Test release
run: |
# verify that version information is embedded correctly
./dist/chezmoi-cgo_linux_amd64/chezmoi --version | tee /dev/stderr | grep -q "chezmoi version v"
file ./dist/chezmoi-cgo_linux_amd64/chezmoi --version | tee /dev/stderr | grep -q "statically linked"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
file ./dist/chezmoi-cgo_linux_amd64/chezmoi --version | tee /dev/stderr | grep -q "statically linked"
file ./dist/chezmoi-cgo_linux_amd64/chezmoi | tee /dev/stderr | grep -q "statically linked"

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! I was a bit sloppy with cut-and-paste.

@twpayne twpayne merged commit cfa3fd2 into master Sep 28, 2020
@twpayne twpayne deleted the static-link-with-musl branch September 28, 2020 15:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux binaries aren't compatible with musl libc systems (dynamic glibc depency)
2 participants