cli
cli copied to clipboard
Old Request: Proper Apple Silicon (M1) (ARM64) support for the CLI and companion tools (VSCode extension, ...)
This is an old request that keeps being ignored and closed without resolution.
We are on Jul/2022, almost two years after Apple launched the M1 and we still do not have snyk-cli correctly running on an Apple Silicon MacOS.
When saying correctly and properly, it means with a good user experience, without hacks and workarounds.
Today if you brew install snyk
, you install a x86_64 binary, and then try to run, you receive the bad CPU type in executable: snyk
message. (BTW, the need to use brew tap is also a bad UX but is a subject for another issue)
Dirt workarounds and hacks like building from node or downloading the binary is also bad, because we cannot maintain update as we developers do with brew, and not everybody likes to install global tools with node.
This issue affects: (Apple Silicon users, which is a large community now and the most common platform for new laptops on corporations)
- "Clean" Developers that do not have Rosetta or install tool with node --global
- Users trying to use the VSCode extension (newer versions of the extension got the hack to include the nodejs source, which of course generates nasty errors like the
{"stack":["Error: Password is required....
- CI/CD workloads using M1 Mac minis (More common than you think). Even with the option to download the binary, it isn't easy to keep updates proper and bring extra maintenance work
Related issues: #1498 #2793 #2773
BTW, you can easily use Github Actions or Circle CI to build ARM64 binaries