Commit c08ff4d
authored
fix: Add ARM64 architecture support for Linux CLI downloads [IDE-1473] (#734)
fix: Add ARM64 architecture support for Linux CLI downloads
Fixes IDE-1473
IntelliJ on Linux ARM64 systems (aarch64) was incorrectly downloading
snyk-linux instead of snyk-linux-arm64, causing Language Server
initialization failures.
Changes:
- Added LINUX_ARM64 platform for snyk-linux-arm64 binary
- Added LINUX_ALPINE_ARM64 platform for snyk-alpine-arm64 binary
- Updated platform detection to check architecture (aarch64/arm64)
- Enhanced tests to cover all Linux architecture combinations
The plugin now correctly detects and downloads the appropriate CLI
binary for:
- Alpine + ARM64 → snyk-alpine-arm64
- ARM64 (non-Alpine) → snyk-linux-arm64
- Alpine (non-ARM64) → snyk-alpine
- Regular Linux → snyk-linux1 parent 2758adb commit c08ff4d
File tree
2 files changed
+24
-1
lines changed- src
- main/kotlin/io/snyk/plugin/cli
- test/kotlin/io/snyk/plugin/cli
2 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
0 commit comments