azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

gozip: Bad CPU type in executable

Open mxschmitt opened this issue 1 year ago • 3 comments

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 avatar Apr 23 '24 21:04 mxschmitt

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 avatar Apr 24 '24 18:04 mxschmitt

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

onexbash avatar May 10 '24 14:05 onexbash

+1 issue encountered on M2 Mac - please accept the fix!

drew1326 avatar May 22 '24 22:05 drew1326

I can verify that its fixed for me on 4.0.6280.

mxschmitt avatar Jan 22 '25 14:01 mxschmitt