v0.6.7: musl static linux binaries (dual-arch x64+arm64) — install.sh ship-blocker fix#144
Merged
Conversation
… ship-blocker fix V0.6.6 prebuilt linux-x64 binary was built on ubuntu-latest (glibc 2.39) and broke installs on Ubuntu 22.04 / Debian 12 / NAS systems with older glibc — `install.sh` ran clean but `ccteam --version` errored with `GLIBC_2.39 not found`. F174: * release.yml: linux build target → x86_64-unknown-linux-musl (ubuntu-latest + musl-tools), add aarch64-unknown-linux-musl on ubuntu-24.04-arm. npm lockfile fast-path tightened to runner.arch == 'X64' (lockfile only resolves linux-x64 rolldown binding; arm64 follows the macOS drop-lockfile path). Static-link sanity step (`file | grep statically linked`) gates against silent regressions if a dep ever pulls a glibc-linked native lib. * install.sh: linux-aarch64/linux-arm64 case from error → SUFFIX linux-arm64. Suffix names stay user-transparent (no -musl qualifier). * Cargo.toml workspace version 0.6.6 → 0.6.7; Cargo.lock updated. * CLAUDE.md §一 baseline synced (workspace 0.6.7, V0.6.7 row; baseline 1639/1 unchanged — patch is 0 lines of ccteam business code). * docs/versions/v0-6-7/README.md install-fix patch record. Verified locally: cargo build --release --target x86_64-unknown-linux-musl produces static-pie linked binary, `ldd` reports `statically linked`, `--version` runs clean on glibc 2.35. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CI runner upgraded to rustc 1.95.0 which promotes unnecessary_sort_by from allow to warn — `-D warnings` then escalates it to a build error. F139 (commit d7b4201) already addressed one site; this is a residual in commands.rs::pick_recent_session. Sister-fix to F174; not a separate finding. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
install.shsucceeded butccteam --versionerrored withGLIBC_2.39 not foundon Ubuntu 22.04 / Debian 12 / NAS systems pinned to older glibc. Reproduced on two user machines.release.ymlbuiltx86_64-unknown-linux-gnuonubuntu-latest(= Ubuntu 24.04, glibc 2.39).linux-arm64prebuilt onubuntu-24.04-arm.install.shlearnslinux-aarch64/linux-arm64. 0 lines of ccteam business code changed.Changes
.github/workflows/release.ymlx86_64-unknown-linux-gnu→x86_64-unknown-linux-musl(ubuntu-latest +apt install musl-tools)aarch64-unknown-linux-muslonubuntu-24.04-arm(GitHub-hosted ARM runner, free for public repos)runner.os == 'Linux'→runner.os == 'Linux' && runner.arch == 'X64'(lockfile only resolves linux-x64 rolldown native binding; arm64 + macOS share the drop-lockfile +npm install --include=optionalpath)file <bin> | grep -E 'statically linked|static-pie linked', fails build on mismatch (guards against silent regressions if a dep upgrade re-introduces a glibc-linked native lib)install.sh:linux-aarch64|linux-arm64fromerr exit 1→SUFFIX=linux-arm64. Suffix names stay user-transparent (no-muslqualifier).Cargo.toml: workspace version0.6.6→0.6.7;Cargo.locksynced.CLAUDE.md§一 baseline updated (workspace0.6.7; baseline1639/1unchanged — patch is 0 lines of ccteam business code).docs/versions/v0-6-7/README.md: install-fix patch record.Local smoke-build (this machine: Ubuntu 22.04, glibc 2.35)
Dep audit confirmed musl-safe before commit: TLS via rustls (
reqwest+rustls-tls,tokio-tungstenite+rustls-tls-webpki-roots), no OpenSSL / native-tls,nix 0.29features (signal/fs/process) are POSIX-standard,notify = "8"(inotify-rs 0.10) musl-compatible.Why musl over
ubuntu-22.04runnermusl static binary has zero glibc dependency, covers Alpine / old CentOS / NAS / OpenWrt as a side effect.
ubuntu-22.04would only pull the floor to glibc 2.35 and GitHub has already announced its image deprecation in 2026; one-shot.Test plan
releaseworkflow's 4-target matrix all green on tag push (linux-x64,linux-arm64,macos-arm64,macos-x64)checkworkflow green (no business code changed; clippy + fmt + workspace tests should be unaffected)v0.6.7push, two reported machines re-runcurl … | shandccteam --versionoutputsccteam 0.6.7linux-arm64install🤖 Generated with Claude Code