Commit 0ca8711
fix(install): Respect TARGETARCH env var for cross-compilation
The install script now checks for TARGETARCH (set by Docker buildx)
or ARCH environment variables before falling back to `uname -m`.
This fixes cross-compilation scenarios where `uname -m` returns the
build host architecture instead of the target architecture, causing
the wrong binary to be downloaded.
Example usage in Dockerfile:
```dockerfile
ARG TARGETARCH
RUN wget -O- .../install.sh | sh
```
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>1 parent 12ed7c8 commit 0ca8711
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| |||
0 commit comments