We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Hi, thanks for the feedback. Great idea, we'll look into it!
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: