fix: add x86_64-unknown-linux-musl build target for npm install (#112)

When glibc isn't compatible (Alpine, NixOS, Docker scratch images),
the npm install script falls back to a static musl binary. However,
no musl target was configured in dist-workspace.toml, causing the
fallback to fail with "Platform not supported".

Fixes #86
This commit is contained in:
Andrew Barnes
2026-03-05 19:33:39 -05:00
committed by GitHub
parent c86b964de4
commit a2cc523e3a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@googleworkspace/cli": patch
---
Add `x86_64-unknown-linux-musl` build target for Linux musl/static binary support
+1 -1
View File
@@ -30,7 +30,7 @@ npm-scope = "@googleworkspace"
github-attestations = true
npm-package = "cli"
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
# Which actions to run on pull requests
pr-run-mode = "plan"
# Don't overwrite release.yml on `cargo dist init` (preserves custom npm registry config)