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

gozip: Bad CPU type in executable #3648

Open
mxschmitt opened this issue Apr 23, 2024 · 2 comments · May be fixed by #3650
Open

gozip: Bad CPU type in executable #3648

mxschmitt opened this issue Apr 23, 2024 · 2 comments · May be fixed by #3650

Comments

@mxschmitt
Copy link
Member

When I try to deploy an app:

func azure functionapp publish <my-project> --javascript

I get:

Setting Functions site property 'netFrameworkVersion' to 'v8.0'
Getting site publishing info...
[2024-04-23T21:11:22.120Z] Starting the function app deployment...
Creating archive for current directory...
Creating archive for current directory...
Creating archive for current directory...
An error occurred trying to start process '/opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.5611/gozip' with working directory '<my-project>'. Bad CPU type in executable

Notes

macOS 14.4.1 Silicon
Note: Rosetta emulation is not enabled

@mxschmitt
Copy link
Member Author

mxschmitt commented Apr 24, 2024

Looks like the macOS-arm64 version on the CDN has the wrong gozip executable:

https://functionscdn.azureedge.net/public/4.0.5611/Azure.Functions.Cli.osx-arm64.4.0.5611.zip

It has the Intel executable even tho its an Apple Silicon build.

@mxschmitt mxschmitt linked a pull request Apr 24, 2024 that will close this issue
5 tasks
@fschlegelone
Copy link

Great that you made a PR to fix it, but why is nobody accepting it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants