azure-functions-core-tools
azure-functions-core-tools copied to clipboard
gozip: Bad CPU type in executable
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
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.
Great that you made a PR to fix it, but why is nobody accepting it?
+1 issue encountered on M2 Mac - please accept the fix!
I can verify that its fixed for me on 4.0.6280.