Repository navigation
Closed
Labels
bug🐛 An issue with the system
Description
Found a bug? Maybe our Slack Community can help.
Describe the Bug
The Atmos version is not being properly embedded on Darwin AMD64 releases.
Expected Behavior
The Atmos version should be embedded properly just as it is currently embedded in Linux.
Steps to Reproduce
Steps to reproduce the behavior:
- Download latest
darwin_amd64release - Run
atmos version - See
0.0.1
Screenshots
$ atmos version
0.0.1Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- OS: Darwin (macOS Big Sur)
- Version
1.4.0
Additional Context
This implementation works fine on linux_amd64
$ atmos version
1.4.0The implementation itself is quite clear. We use ldflags to override cmd.Version using the environment variable exposed by goreleaser:
Lines 7 to 27 in c9c63b0
| builds: | |
| - env: | |
| # goreleaser does not work with CGO, it could also complicate | |
| # usage by users in CI/CD systems like Terraform Cloud where | |
| # they are unable to install libraries. | |
| - CGO_ENABLED=0 | |
| mod_timestamp: '{{ .CommitTimestamp }}' | |
| goos: | |
| - darwin | |
| - freebsd | |
| - windows | |
| - linux | |
| goarch: | |
| - amd64 | |
| - '386' | |
| - arm | |
| - arm64 | |
| binary: atmos | |
| ldflags: | |
| # Set `atmos` version to the GitHub release tag using Go `ldflags` | |
| - '-s -w -X "github.com/cloudposse/atmos/cmd.Version={{.Env.GORELEASER_CURRENT_TAG}}"' |
Not sure why it's not working as expected.
Metadata
Metadata
Assignees
Labels
bug🐛 An issue with the system
Activity
aknysh commentedon Apr 25, 2022
this is working.
Download a darwin release, then run
The correct version (GitHub release) gets embedded into the binary when cutting releases on GitHub.
if you build locally, the version that gets embedded is taken from the Makefile
STDIN
fix: Upgrade containerd to v2.1.5 to address CVE-2024-25621 and CVE-2…