Release dynamically linked #169

Closed
opened 2026-01-19 18:29:16 +00:00 by michael · 0 comments
Owner

Originally created by @paolafrancesca on GitHub.

in the release github workflow we are not building a static binary:
https://github.com/dutchcoders/transfer.sh/blob/master/.github/workflows/release.yml#L37
go build -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }}
vs
go build -tags netgo -ldflags '-a -s -w -extldflags "-static"' -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }}

Originally created by @paolafrancesca on GitHub. in the release github workflow we are not building a static binary: https://github.com/dutchcoders/transfer.sh/blob/master/.github/workflows/release.yml#L37 `go build -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }}` vs `go build -tags netgo -ldflags '-a -s -w -extldflags "-static"' -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }}`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#169