Skip to content

Force static Linux CLI release builds#146

Merged
mikehorgan-dell merged 1 commit into
mainfrom
fix/release-cli-static-linux
Jun 30, 2026
Merged

Force static Linux CLI release builds#146
mikehorgan-dell merged 1 commit into
mainfrom
fix/release-cli-static-linux

Conversation

@mikehorgan-dell

Copy link
Copy Markdown
Member

Summary

  • force CGO_ENABLED=0 for the release workflow's CLI binary job so published Linux binaries do not pick up host glibc requirements
  • add a release-workflow verification step that asserts the Linux amd64 and arm64 CLI artifacts are statically linked before packaging

Why

  • the published Linux release binaries were dynamically linked against newer glibc symbols (for example GLIBC_2.32 and GLIBC_2.34), which breaks startup on older supported environments such as RHEL 8
  • PR artifact builds already force CGO_ENABLED=0; this makes the release workflow consistent with that safer behavior

Test plan

  • reviewed the published v5.11.1 and v5.11.2 Linux amd64 release assets and confirmed they are dynamically linked and require newer glibc symbols
  • CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o /tmp/.../spt-linux-amd64 . followed by file and ldd verification (statically linked, not a dynamic executable)
  • CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o /tmp/.../spt-linux-arm64 . followed by file verification (statically linked)

@mikehorgan-dell mikehorgan-dell merged commit e2bd97a into main Jun 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant