From 83256bad4e66b953391b25b0af2ce3238d4b7425 Mon Sep 17 00:00:00 2001 From: Bortlesboat Date: Thu, 5 Mar 2026 07:43:41 -0500 Subject: [PATCH] fix: add x86_64-unknown-linux-musl build target for npm install 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 --- .changeset/fix-linux-musl-install.md | 5 +++++ dist-workspace.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-linux-musl-install.md diff --git a/.changeset/fix-linux-musl-install.md b/.changeset/fix-linux-musl-install.md new file mode 100644 index 0000000..2aab1a3 --- /dev/null +++ b/.changeset/fix-linux-musl-install.md @@ -0,0 +1,5 @@ +--- +"@googleworkspace/cli": patch +--- + +Add `x86_64-unknown-linux-musl` build target for Linux musl/static binary support diff --git a/dist-workspace.toml b/dist-workspace.toml index 940e6ea..08ffd12 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -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)