Skip to content

build: build static binaries with Go 1.27 - #17

Merged
nabil1440 merged 1 commit into
developfrom
blockers/6-go-toolchain
Sep 22, 2026
Merged

nabil1440 merged 1 commit into
developfrom
blockers/6-go-toolchain

Conversation

@nabil1440

@nabil1440 nabil1440 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Change

  • go.mod sets go 1.27.0 and toolchain go1.27.1. This PR updates the dependencies. go mod tidy corrects the // indirect marks.
  • build.sh builds with CGO_ENABLED=0, -trimpath and -ldflags "-s -w". Thus the binaries are static and stripped.
  • .github/workflows/build.yml uses go-version: '1.27' with check-latest: true. Each release uses the latest Go 1.27 patch release.

Caution

CAUTION: DO NOT CHANGE THE NAMES OR THE CONTENTS OF THE RELEASE ASSETS. IF YOU CHANGE THEM, THE INSTALLED CLIS CANNOT RUN fly update.

  • This PR keeps the asset names fly-linux-<arch>.tar.gz.
  • Each archive still contains a binary with the name fly-linux-<arch>.

Tests

Closes #6

- go.mod: go 1.27.0, toolchain go1.27.1; update dependencies; go mod tidy
- build.sh: CGO_ENABLED=0, -trimpath, -s -w (static, stripped binaries)
- build.yml: go-version '1.27' with check-latest

Release asset names and tarball layout are unchanged, so the v0.1.1
updater can still install new releases.

Closes #6
@nabil1440
nabil1440 added this pull request to stack #24 September 21, 2026 10:41
@nabil1440
nabil1440 merged commit 0c41a16 into develop Sep 22, 2026
@nabil1440
nabil1440 deleted the blockers/6-go-toolchain branch September 22, 2026 06:51
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.

bug: Build with a supported Go version and make static binaries

1 participant