-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Problem Statement
Current releases do not provide pre-compiled binaries. Requiring users to install Go and manually build the project complicates setup and distribution. Providing standalone binaries for common OS/platforms will simplify installation and usage for end-users.
Requested Feature
As part of the release process, publish pre-compiled binaries for common platforms/architectures:
- terrafmt_linux_386.tar.gz
- terrafmt_linux_amd64.tar.gz
- terrafmt_linux_arm64.tar.gz
- terrafmt_darwin_arm64.tar.gz
- terrafmt_darwin_x64.tar.gz
- terrafmt_windows_386.zip
- terrafmt_windows_amd64.zip
- terrafmt_windows_arm64.zip
Implementation Suggestions
- Use GoReleaser to automate multi-platform build and release workflow.
- Ensure correct version info is injected via
-ldflags(see Go build flags documentation and Go documentation on ldflags). - Dynamically set version in
lib/version/version.govia ldflags.
Acceptance Criteria
- Pre-compiled binaries provided as release assets for all listed platforms/architectures
- Version embedded in binary via ldflags
- GitHub Actions automates build/release with GoReleaser
Example improvement
- Users downloading releases will no longer need Go installed; installation via pre-built binary will be quick and reliable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels