Skip to content

[Bug]: make -w binary-darwin-arm64 results in an amd64 -binary #1461

@aleksipirttimaa

Description

@aleksipirttimaa

Steps to Reproduce

  1. checkout
  2. make -j8 -w binary-darwin-arm64

Your Environment

  • go version go1.24.5 darwin/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:

cli/Makefile

Line 231 in 6bc838d

$(call BUNDLE_MAKE,darwin,amd64,,$(BINARY_OUTPUT)darwin-arm64)

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageWaiting for discussion / prioritization by team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions