cli
cli copied to clipboard
[Bug]: `make -w binary-darwin-arm64` results in an amd64 -binary
Steps to Reproduce
- checkout
make -j8 -w binary-darwin-arm64
Your Environment
- go version
go1.24.5darwin/arm64 - GNU Make 3.81
- macOS 15.5 (24F74)
Expected Behavior
Go should output an arm64 -binary.
Actual Behavior
Go outputs an amd64 -binary.
% file output/binary/darwin-arm64/step
step: Mach-O 64-bit executable x86_64
% ./output/binary/darwin-arm64/step
zsh: bad CPU type in executable: step
Additional Context
The Makefile references the target here:
https://github.com/smallstep/cli/blob/6bc838deba11fd4c1ffbcc8aaf19aa650ca77418/Makefile#L231
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).