Skip to content
New issue

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

Enhance Makefile to be able to specify build targets #389

Open
2 tasks done
muellinho opened this issue Jul 4, 2024 · 1 comment
Open
2 tasks done

Enhance Makefile to be able to specify build targets #389

muellinho opened this issue Jul 4, 2024 · 1 comment
Labels
proposal Feature request proposal-accepted A proposal that has been accepted

Comments

@muellinho
Copy link

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 and GOARCH?

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

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@muellinho muellinho added the proposal Feature request label Jul 4, 2024
@MarvinJWendt
Copy link
Member

Hi, thanks for the feedback. Great idea, we'll look into it!

@MarvinJWendt MarvinJWendt added the proposal-accepted A proposal that has been accepted label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Feature request proposal-accepted A proposal that has been accepted
Projects
None yet
Development

No branches or pull requests

2 participants