Closed rclark closed 1 year ago
https://github.com/aws-cloudformation/cloudformation-cli-go-plugin/blob/d23e052b5de23d9026d9e39c5f488279ea7900a4/python/rpdk/go/templates/makebuild#L7
On arm64 systems (e.g. new M1 Macs) this results in a binary built for the wrong architecture. Adding GOARCH=amd64 would make sure that the binaries are appropriate for Lambda runtimes.
GOARCH=amd64
Our current workaround is to pass GOARCH to makebuild:
build: env GOARCH=amd64 TAGS=logging make -f makebuild
Of course, a real fix would be nice!
Implemented in PR #209
https://github.com/aws-cloudformation/cloudformation-cli-go-plugin/blob/d23e052b5de23d9026d9e39c5f488279ea7900a4/python/rpdk/go/templates/makebuild#L7
On arm64 systems (e.g. new M1 Macs) this results in a binary built for the wrong architecture. Adding
GOARCH=amd64
would make sure that the binaries are appropriate for Lambda runtimes.