samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

alpaca 2.0.5 killed on start on MacOS 14.5 (23F79) arm64 #128

Closed mdemierre closed 1 week ago

mdemierre commented 1 week ago

Since the upgrade to 2.0.5 I'm unable to start alpaca.

I tried both the brew version and to directly run the binary downloaded from GitHub.

When starting the binary I get this:

./alpaca_v2.0.5_darwin-arm64
[1]    3264 killed     ./alpaca_v2.0.5_darwin-arm64

I also get a popup saying:

“alpaca_v2.0.5_darwin-arm64” is damaged and can’t be opened. You should move it to the Trash.

If I try the brew service I get:

alpaca        error  9 <username> ~/Library/LaunchAgents/homebrew.mxcl.alpaca.plist

If I try the binary of the older version I get a different popup about unrecognized signature, and then I can accept it through the Preferences in Privacy & Security. For 2.0.5 I get nothing there.

Installing alpaca via Go works.

Was anything changed in the signing or build process between 2.0.4 and 2.0.5?

mike-a-bike commented 1 week ago

Same issue here. Immediately killed process after update to 2.0.5 via Homebrew. OS Version: 14.5 (23F79) CPU: Apple M3 Pro (arm64) Credential Config: Kerberos

Downgraded to 2.0.4, works like a charm.

samuong commented 1 week ago

Thanks for reporting this. I can reproduce it locally on my MacBook Pro.

There was a change with the build process in v2.0.5, which was that the Go version on the runners was upgraded to 1.22. I suspect this has something to do with it, although I'm not sure exactly how. Strangely, I can build and run the binary just fine if I build it on my own laptop. I'm not sure how the GHA runners differ, but I'll look into this.

samuong commented 1 week ago

Ok I've bumped a few versions in the workflow, and that seems to fix it. I'll release this as v2.0.6 shortly.

samuong commented 1 week ago

Oops, I fixed the CI workflow, but not the release workflow, so v2.0.6 went out broken in the same way! I've just reapplied the fix to the release workflow and pushed this out as v2.0.7. I've also updated the Homebrew tap so you should be able to update this via brew.

Please let me know if anything is still broken, and thanks again for reporting!

mike-a-bike commented 1 week ago

Thank you for fixing this so soon. Much appreciated! 👍 And thank you for this project and your work.

It works like a charm!

mdemierre commented 1 week ago

@samuong Thanks for the quick fix! Also works fine on my environment now with the latest binaries.