Open muellinho opened 5 months ago
Recently I've built an application with make build and tried to deploy it to CloudFoundry as binary.
make build
During deployment however I received the following error message: Cannot execute binary file: Exec format error
Cannot execute binary file: Exec format error
It took a while to realize that I was working on an ARM Mac locally and therefor my executable was built for the wrong architecture.
Can the Makefile be enhanced in a way that we can specify the build targets through the use of the vars GOOS and GOARCH?
GOOS
GOARCH
An alternative that I used and which works is to simply issue the go build command manually and setting above mentioned variables.
go build
No response
Hi, thanks for the feedback. Great idea, we'll look into it!
Is your feature request related to a problem? Please describe.
Recently I've built an application with
make build
and tried to deploy it to CloudFoundry as binary.During deployment however I received the following error message:
Cannot execute binary file: Exec format error
It took a while to realize that I was working on an ARM Mac locally and therefor my executable was built for the wrong architecture.
Describe the solution you'd like
Can the Makefile be enhanced in a way that we can specify the build targets through the use of the vars
GOOS
andGOARCH
?Describe alternatives you've considered
An alternative that I used and which works is to simply issue the
go build
command manually and setting above mentioned variables.Search
Code of Conduct
Additional context
No response