AGENTS.md instructions for /Users/jdx/.codex/worktrees/150b/mise
This file provides guidance to AI coding agents when working with code in this repository. It keeps the CLAUDE.md filename for compatibility with existing tooling, and AGENTS.md symlinks to it for other agents.
Registry Submissions: READ THIS FIRST
Most registry PRs from agents get rejected. Before adding anything to registry/, understand the rules:
mise does not host self-written, personal, niche, or low-popularity tools. The registry is curated for tools that are already widely used. "It works" or "it has tests" is not the bar.
Tools that aren't VERY popular will be rejected without explanation. Per contributing.md: "@jdx won't explain why a given tool wasn't accepted." There is no appeal, no checklist, no second chance — the PR is closed and that's it.
Wasted PRs are the default outcome for tools the agent or user has not vetted against this bar. Do not submit one speculatively.
Required pre-submission check
Before touching registry/, ALWAYS do the following:
Ask the user: "Is this tool already widely used outside your own projects?" — if it's the user's own tool, a fork, an internal/company tool, or something with a small audience, stop and tell them the PR will be rejected. Do not submit.
Actively check popularity for every registry PR — no exceptions. Look up real numbers; do not guess. Useful sources:
Whether the project shows up in third-party docs, awesome-lists, or other tools
Apply the bar. Rough signals — very low numbers are disqualifying:
GitHub stars in the thousands, not hundreds
Active maintenance (recent releases, not abandoned)
Real third-party usage (referenced in docs, blog posts, other tools, package registries)
Recognizable in its ecosystem
Include the popularity data in the PR description. Every registry PR body MUST contain a short section like:
code
## Popularity
- GitHub: 12.3k stars, 480 forks, last release 2026-04-12
- crates.io: 1.2M downloads
- Used by: <project A>, <project B>
This is non-negotiable — it lets the maintainer evaluate the submission without re-doing the research. PRs without it look speculative and are more likely to be rejected.
If the tool is borderline or numbers are low, warn the user clearly that the PR is likely to be rejected without reason, and ask if they still want to proceed. Do not soften this — users have repeatedly been surprised when their PR was closed, and the agent should have warned them up front.
Suggest the alternative: users can install any tool themselves via explicit backend syntax (mise use aqua:owner/repo, mise use github:owner/repo, mise use cargo:name, mise use npm:name, etc.) or by writing a tool plugin. The registry is only for shorthand convenience for popular tools — not for enabling installation.
Backend choice: aqua (preferred) or github
For registry entries the backend tiers are:
Tier 1 — preferred:aqua:, github:, and gitlab:. These are the routinely accepted backends.
Prefer aqua: when the tool is in the aqua registry. Better UX, SLSA verification, and per-version logic.
Use github: when the tool isn't in aqua but ships GitHub releases.
Use gitlab: for tools released through GitLab.
Tier 2 — high bar, but lower than tier 3:conda:. Potentially acceptable when the tool can't be supported via aqua/github. The bar is lower than tier 3 because the conda backend in mise does not require a separately-installed package manager — mise downloads and extracts packages directly from anaconda.org via rattler, so users don't need conda/mamba on PATH. Still requires a popular, well-maintained tool.
Tier 3 — extremely high bar, almost never accepted:npm:, pipx:, gem:, cargo:, go:, dotnet:. These all rely on a separately-installed runtime/toolchain being present on PATH (node, python, ruby, cargo, go, dotnet), which is fragile — the wrong version, a missing install, or PATH ordering quirks all break them. npm:/pipx:/gem: are particularly painful because tools installed via them silently bind to whichever node/python/ruby was on PATH at install time. Don't reach for these for a registry PR unless the user has explicitly confirmed @jdx wants it that way for this specific tool.
Not accepted at all:
New asdf: plugins — supply-chain security. Use aqua/github instead.
New vfox: plugins — same reason. Use aqua/github instead.
ubi: is deprecated and will not be accepted under any circumstances.
Users can still install via any backend themselves with explicit syntax (mise use vfox:..., mise use cargo:..., etc.) — they just don't get a registry shorthand for it.
Development Commands
Building and Testing
mise run build or mise run b - Build the project with cargo
target/debug/mise - Run the built binary directly
mise run test or mise run t - Run all tests (unit + e2e)
mise run test:unit - Run unit tests only
mise run test:e2e - Run end-to-end tests only
mise run snapshots - Update test snapshots with cargo insta
Debugging
Use MISE_DEBUG=1 or MISE_TRACE=1 environment variables to enable debug output (not RUST_LOG)
Code Quality and Testing
mise run lint - Run all linting tasks
mise run lint-fix - Run linting and automatically fix issues
mise run format - Format code (part of CI task)
mise run ci - Run format, build, and test
mise run test:e2e [test_filename]... - Run specific e2e tests (use this instead of executing test files directly)
mise --cd crates/vfox run test - Run tests for the vfox crate
mise --cd crates/vfox run lint - Run linting for the vfox crate
mise --cd crates/vfox run lint-fix - Run linting and fix issues for the vfox crate
mise task ls - List all available tasks
Documentation and Generation
mise run render - Generate all documentation and completions
mise run render:usage - Generate CLI usage documentation
mise run render:completions - Generate shell completions
mise run docs - Start documentation dev server
mise run docs:build - Build documentation
Development
mise run install-dev - Install development version locally
mise run clean - Clean cargo build artifacts
Code Architecture
High-Level Structure
Mise is a Rust CLI tool that manages development environments, tools, tasks, and environment variables. The codebase follows a modular architecture:
Core Components:
src/main.rs - Entry point and CLI initialization
src/cli/ - Command-line interface implementation with subcommands
src/config/ - Configuration file parsing and management
registry: - Any changes to registry/ (no scope needed, use for both new tools and fixes)
Scopes:
For command-specific changes, use the command name: install, activate, use, exec, etc.
For subsystem changes: config, backend, env, task, vfox, python, github, release, completions, http, schema, doctor, shim, core, deps, ci
Use task (not run) for task-related changes, even if the code lives in src/cli/run.rs or src/cmd.rs
Description Style:
Use lowercase after the colon
Use imperative mood ("add feature" not "added feature")
Keep it concise but descriptive
Examples:
fix(install): resolve version mismatch for previously installed tools
feat(activate): add fish shell support
feat(vfox): add semver Lua module for version sorting
feat(env): add environment caching with module cacheability support
docs(contributing): update hk usages
chore: release 2026.1.6
chore(ci): add FORGEJO_TOKEN for API authentication
registry: add miller
Pre-commit Process
Run hk install --mise once to set up pre-commit hooks (runs hk fix automatically on commit)
Run mise run lint-fix and git add any lint fixes before committing
Use mise run test:e2e [test_filename]... for running specific e2e tests
Never run e2e tests by executing them directly - always use the mise task
Deprecation Policy
When deprecating a feature or backend:
Immediately: Mark as deprecated in docs (add warning banner)
6 months later (warn_at): Display deprecation warning in CLI using deprecated_at! macro from src/output.rs
12 months after warn (remove_at): debug_assert! in deprecated_at! fires, signaling the code should be removed
Use mise version format for dates (e.g., deprecated_at!("2026.10.0", "2027.10.0", "id", "message")).
If the replacement has been available for a long time, the CLI warning can start immediately (set warn_at to the current version).
Important Implementation Notes
Backend System
When implementing new tool backends, follow the pattern in src/backend/mod.rs. Each backend must implement the Backend trait with methods for listing versions, installing tools, and managing tool metadata.
DO NOT ASSUME SEMVER
Do not assume tool versions follow semver or any other orderable scheme. mise manages hundreds of tools with wildly different versioning conventions:
Tool-specific meanings of latest (e.g. some exclude pre-releases, some don't)
Rules:
Do not call versions::Versioning::new(...) (or any other semver comparator) at a new call site to pick the "newest" version, "resolve latest", or sort a version list. That crate silently returns None / arbitrary ordering for non-semver strings, which means wrong versions get chosen for many tools.
To resolve a version request (latest, a prefix, a channel name), delegate to the backend via Backend::latest_version, Backend::latest_installed_version, Backend::list_versions_matching, or ToolRequest::resolve — the backend knows what "latest" means for its tool.
To list installed versions in a meaningful order, use Backend::list_installed_versions_matching or the toolset's resolved versions. Do not reorder them yourself.
Lockfile version strings must be treated as opaque — compare with ==, never with a version ordering. Never write a non-concrete string (latest, lts/*, a prefix) into the lockfile; resolve first.
A few existing call sites (e.g. runtime symlinks) do use Versioning ordering today, but that's legacy behavior and arguably also wrong — do not point at them to justify new semver assumptions.
If you think you need to pick "the newest installed version" at a new call site, stop and ask — that call almost always belongs on the backend, not inline.
Plugin Development
Core tools are implemented in src/plugins/core/
External plugins use ASDF or vfox compatibility layers
Plugin metadata is defined in mise.plugin.toml files
Configuration Parsing
The configuration system supports multiple file formats and environment-specific configs. Changes to settings require updating settings.toml and running mise run render:schema.
Testing Strategy
E2E tests are organized by feature area (cli/, config/, backend/, etc.)
Use snapshot testing for CLI output verification
Backend-specific tests verify tool installation and version management
Slow tests (marked with _slow suffix) test actual tool compilation/installation
Cross-Platform Considerations
Windows-specific implementations in files ending with _windows.rs
Platform-specific tool installation logic in core plugins
Shim system varies by platform (especially Windows)
we don't chmod mise e2e tests to be executable
GitHub Interactions
When posting comments on GitHub PRs or discussions, always include a note that the comment was AI-generated (e.g., "This comment was generated by an AI coding assistant.").
Documentation
URL Structure
When referencing mise documentation URLs, use the correct path structure based on the docs/ directory layout:
Dev tools & backends: mise.en.dev/dev-tools/backends/<backend>.html (e.g., mise.en.dev/dev-tools/backends/s3.html)
Configuration: mise.en.dev/configuration/...
Tasks: mise.en.dev/tasks/...
Environments: mise.en.dev/environments/...
CLI reference: mise.en.dev/cli/...
Do NOT use shortened paths like mise.en.dev/backends/... - always include the full path matching the docs/ directory structure.
I’ll pull up the discussion and then cross-check it against the local code path so we can answer from the actual behavior instead of guessing.
Assistant
The report is about the aarch64 GNU binary starting at v2026.7.0: it now needs GLIBC_2.38/GLIBC_2.39, while Amazon Linux 2023 is on glibc 2.34. I’m going to check the release/build workflow next, because this kind of break usually comes from the runner/container used to produce the binary rather than application code.
Assistant
There’s already a clue in Cross.toml: x86_64 GNU is pinned to an old cross image, but aarch64 GNU is on ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main. That tag is floating, so the binary’s minimum glibc can move even if mise source code didn’t intentionally change.
Assistant
The v2026.7.0 tag itself doesn’t show a release workflow change; it’s mostly a version bump. That makes the floating cross image more likely: the same config can produce a different glibc floor later because :main is not immutable. I’ll verify that against the shipped release assets and maybe the older v2026.6.14 binary.
Assistant
I’m going to inspect the actual release binaries now. The quickest way is to download the two ARM64 Linux archives and look at their GLIBC_* symbol versions with strings, which works even from this Mac workspace.
Assistant
The download is still running. Once it finishes I’ll have hard evidence for whether v2026.7.0 really changed the required symbol floor compared with v2026.6.14.
Assistant
That confirms the report: v2026.6.14 topped out at GLIBC_2.30, which AL2023 can run, while v2026.7.0 tops out at GLIBC_2.39. I’m checking which symbols caused the bump so the explanation isn’t just “the build image got newer” in vague terms.
Assistant
The Cross.toml is identical between v2026.6.14 and v2026.7.0, including the :main image. So this wasn’t caused by a committed change to the release workflow; it’s reproducibility drift from a floating build image, possibly amplified by dependency updates.
Assistant
The specific new high-version symbols are __isoc23_sscanf/__isoc23_strtol from glibc 2.38 and weak pidfd_spawnp/pidfd_getpid from glibc 2.39. Those are the exact dynamic loader failures the user is seeing on AL2023.
Assistant
I’m going to grab line numbers for the build config so I can point at the exact release-path decision. Then I’ll wrap this up with the likely fix/workaround.
Assistant
One more useful check: I’m going to see whether the current latest release still has the same glibc floor, so the answer can distinguish “one bad release” from “current build line is affected.”
Assistant
The latest-release check is still downloading. Tiny suspense, very on-brand for binary compatibility work.
Assistant
v2026.7.3 still requires GLIBC_2.39, so this is still present on the current release line. The RPM path likely carries that same GNU ARM64 binary, so the yum instructions land on the affected artifact.
Assistant
The release script only checks glibc compatibility for x86_64-unknown-linux-gnu; ARM64 has no guard. That explains why CI let this through even though it would fail on AL2023 ARM64.
Assistant
I’m checking the ARM64 musl artifact too, because that’s the practical workaround the discussion asks about.
Assistant
This happened because the ARM64 GNU release artifact is built with a floating cross image:
main is movable, and the current cross-rs package page shows it as a recently published tag. So v2026.7.0 likely got built with a newer aarch64 toolchain/sysroot than v2026.6.14, causing the binary to link against newer glibc symbols.
I verified the release binaries:
v2026.6.14 linux-arm64: max GLIBC_2.30
v2026.7.0 linux-arm64: max GLIBC_2.39
v2026.7.3 linux-arm64: max GLIBC_2.39
The exact new problem symbols are __isoc23_sscanf / __isoc23_strtol from GLIBC_2.38, plus weak pidfd_spawnp / pidfd_getpid from GLIBC_2.39. Amazon Linux 2023 ships glibc 2.34, per AWS docs, so the dynamic loader rejects the binary. The discussion’s error matches that: GLIBC_2.39 and GLIBC_2.38 missing in #10874.
CI missed it because the glibc compatibility check in scripts/build-tarball.sh only runs for x86_64-unknown-linux-gnu, not aarch64-unknown-linux-gnu.
Short version: the ARM64 GNU build is not reproducible enough because it uses :main, and there’s no ARM64 glibc-floor check. The user’s workaround is valid: linux-arm64-musl has zero GLIBC_* refs, so musl should avoid this class of failure. A repo-side fix would be to pin/replace the ARM64 cross image and add the same max-glibc gate for ARM64, probably targeting <= 2.34 if AL2023 support is desired.
User
what should we do?
Assistant
I’d split this into “stop the bleeding” and “make the release pipeline enforce the promise.” The root problem is the ARM64 GNU artifact drifted, so the fix should be in release engineering rather than asking users to upgrade glibc.
Assistant
A practical target would be: keep AL2023 working for the normal ARM64 RPM/tarball, and treat AL2 ARM64 as musl-only unless someone wants to invest more in old-glibc cross tooling. v2026.6.14 already required glibc 2.30, so AL2’s 2.26 was already out of reach there.
Assistant
I’m going to quickly inspect the candidate cross images themselves. If main-centos has a usable older sysroot, that’s a cleaner hotfix than trying to nurse the Ubuntu main image back down.
Assistant
Docker is pulling the images now. This will tell us whether the centos variant is actually a viable base or just a tempting label.
Assistant
The image check is useful: main is Ubuntu glibc 2.39, 0.2.5 is Ubuntu glibc 2.23, and main-centos is glibc 2.17 but with a very old GCC 4.8. The centos image might be too old for current native dependencies, so I’d treat it as a candidate to test, not an automatic switch.
Assistant
I’d do this:
Treat this as a release bug for ARM64 GNU.
AL2023 has glibc 2.34, and the current linux-arm64 artifact requires 2.39. That’s on us, not on the user.
Tell users to use musl or pin for now.
For the discussion: yum/RPM on AL2023 ARM64 is affected. Workarounds are v2026.6.14 or the linux-arm64-musl standalone artifact. I verified the musl binary has no GLIBC_* refs.
Patch CI before the next release.
Add a glibc floor check for aarch64-unknown-linux-gnu, probably <= 2.34 if we want AL2023 support. Right now only x86_64 has the guard, so ARM drift slipped through.
Stop using floating cross-rs ... :main for ARM64.
I’d test in this order:
Try ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5; it has glibc 2.23, but may fail because the comment says newer assembler support was needed.
Try main-centos; it has glibc 2.17, but GCC 4.8 is probably too old.
If both fail, build/pin our own ARM64 cross image based on Ubuntu 20.04 or equivalent. That gives a modern-enough toolchain while keeping glibc at 2.31, comfortably under AL2023’s 2.34.
Do not promise AL2 ARM64 GNU. v2026.6.14 already required glibc 2.30, so AL2’s 2.26 was already broken there. For AL2 ARM64, musl is the realistic answer.
Suggested discussion reply:
md
Thanks, this is a release artifact bug. The ARM64 GNU binary is currently built with a floating cross-rs `main` image, and that image now uses glibc 2.39. Amazon Linux 2023 ships glibc 2.34, so the loader rejects the binary.
For now, please use the `linux-arm64-musl` standalone artifact or pin to `v2026.6.14`. I’m going to add an ARM64 glibc compatibility check to CI and stop using the floating ARM64 GNU cross image so future releases fail before publishing if they exceed the intended glibc floor.
*This comment was generated by an AI coding assistant.*
My bias: fix the guard first, then cut a hotfix once the ARM64 build image is pinned or replaced.
User
make a pr that fixes it, ssh bamboo if you want to test on a linux box
Assistant
I’ll turn this into a small release-pipeline PR: pin or lower the ARM64 GNU build environment, add an ARM64 glibc gate, then validate the produced binary’s symbol floor. I’ll use bamboo if local Docker/cross isn’t enough.
Assistant
The worktree is clean but detached, so I’m going to put it on a proper codex/ branch before editing. I also found this was intentionally reverted once: :main was needed for C++17 support, so the safest PR needs a CI guard even if the image choice gets revised again later.
Assistant
I’m going to read the prior image-change commits now; that should tell us whether reverting to 0.2.5 is viable or if the fix needs a custom/pinned image path instead.
Assistant
The history confirms it: the broad :main switch was reverted, but ARM64 stayed on :main because of assembler/Crypto support concerns. I’m going to test the candidate image change before committing to it.
Assistant
cross isn’t installed locally, but the repo already uses mise-managed tools. I’m checking whether I can run the same build command through mise x; if not, I’ll use the Linux host for the heavier validation.
Assistant
bamboo has Docker but no visible Rust toolchain, which is enough for probing images but probably not enough by itself for a repo build unless we run inside the cross container or install tools there. I’ll first make the release script guard reusable, then use Docker to test the guard against known good/bad artifacts.
Assistant
Before editing the image, I’m checking whether the cross image itself can run cargo; if it can, we can test a real ARM64 build on bamboo without installing Rust on the host.
Assistant
The cross images don’t include Rust/Cargo; they’re meant to be driven by the cross wrapper from a Rust host. So a full build means either installing cross/Rust on bamboo, or using local tooling with Docker.
Assistant
I’m going to make the guard a helper function and apply it to both GNU Linux release targets. That keeps the failure message explicit and prevents future drift even if the image changes again.
Assistant
There’s a tradeoff here: switching ARM64 back to 0.2.5 is the cleanest compatibility fix if it still builds; if it doesn’t, the guard will still be useful but we’ll need a purpose-built image. I’ll try the smaller image change first because it gives users a working release artifact, not just a failing CI.
Assistant
I’m going to edit three things now: change the ARM64 GNU cross image away from floating main, add a reusable glibc checker script, and call it for both x86_64 GNU and ARM64 GNU release builds.
Assistant
The patch is in. Next I’m making the checker executable and validating it against the known bad v2026.7.3 ARM64 binary and the musl artifact so we know the guard catches exactly the failure mode.
Assistant
The checker catches the current bad artifact with 2.39 > 2.34. I’ll also run it against the previous working ARM64 GNU artifact and then move on to testing whether the pinned 0.2.5 image can still build.
Assistant
The musl smoke exposed a real shell bug in my first checker draft: grep plus pipefail exits before the “no glibc symbols” branch. I’m swapping that to awk so static/musl binaries are handled cleanly.
Assistant
The checker now handles both dynamic GNU binaries and no-glibc musl/static binaries. I’ll rerun the smoke tests and then attempt a real ARM64 GNU build.
Assistant
The checker now behaves correctly: current ARM64 GNU fails, old ARM64 GNU passes. shellcheck isn’t installed directly, so I’ll use the repo’s mise tool wrapper for linting after the build attempt.
Assistant
Now for the heavier bit: I need to prove aarch64-unknown-linux-gnu:0.2.5 still builds mise. I’ll install/use cross locally first; if Docker-on-mac gets awkward, I’ll move the same test to bamboo.
Assistant
Local Docker is Linux/ARM64 under the hood, while bamboo is Linux/x86_64, matching the release runner more closely. I’ll still get cross available from the repo tooling, then run the actual build where it’s least likely to fight the host.
Assistant
bamboo already has mise, which is handy. I’m checking whether it can provision Rust/cross cleanly, then I’ll sync this branch over for a release-script build.
Assistant
Rust is being installed by mise on bamboo; once that finishes I’ll install cross there. Since rsync is not present remotely, I’ll use a temporary clone plus git apply for the test workspace.
Assistant
Rust is available on bamboo. I’ll install cross under that toolchain now; this is the slow-but-faithful part of matching release CI.
Assistant
cargo install cross hit a missing system compiler on bamboo. Rather than mutate the box with OS packages, I’m trying mise’s GitHub/aqua path for a prebuilt cross binary.
Assistant
The prebuilt cross binary works, it just needs rustc in PATH. I’ll compose those tools with mise x rust@1.93 github:cross-rs/cross and then run the release build.
Assistant
I’m creating a clean test clone on bamboo and applying this local diff there. That keeps the remote box disposable while using its x86_64 Docker setup for the release-style build.
Assistant
Small catch: the new checker file is still untracked locally, so the first diff didn’t include it. I’ll add it to the index for accurate testing/committing, then apply the staged-plus-worktree patch to the remote clone.
Assistant
The patch now includes all three files. I’m applying that exact diff in the remote clone and checking the remote status before running the build.
Assistant
Remote clone is patched. I’m starting the actual scripts/build-tarball.sh aarch64-unknown-linux-gnu run on bamboo; this may take a bit because it’s a serious-profile release build and will fetch/build dependencies.
Assistant
mise refused the temporary clone until it’s trusted. That’s expected on a fresh path; I’ll trust only that clone and rerun.
Assistant
The build is running now. It has reached the cross build step with the patched ARM64 image, so this is the real viability test for the image change.
Assistant
Still building, with no failure yet. Cross builds can be quiet for long stretches while Docker prepares the target image and Cargo compiles dependencies.
Assistant
Good news: the patched 0.2.5 ARM64 image has made it deep into compiling mise itself, including aws-lc-sys, openssl-sys, and mlua. That was the main risk area.
Assistant
The build is still healthy and past most native dependencies. I’m waiting for the final link and the new glibc check now.
Assistant
No new output yet, likely final compile/link. I’m leaving it running; this is the moment where release-profile builds can look frozen while LTO does its thing.
Assistant
Still in the final build phase. Since this is the actual release profile, I’m giving it time rather than downgrading the test to a cheaper profile.
Assistant
The build is still alive and quiet. I’m going to keep polling; if it fails, it should give us a concrete linker or glibc-check error.
Assistant
Still waiting on the release build. This is taking long enough that I’ll keep an eye on it, but there’s no sign of a compile failure from the older image.
Assistant
The final link is still running. Since the command is still active, I’m not interrupting it; the result is worth the wait here because it proves whether the PR actually ships a compatible ARM64 artifact.
Assistant
This is now squarely in “LTO is contemplating its life choices” territory. I’ll do a side check on bamboo to confirm the build is consuming CPU rather than wedged.
Assistant
Side check confirms it’s active: rustc is using CPU on the final mise link. The older ARM64 image has already survived the compile path; now we’re just waiting on LTO to finish.
Assistant
Still linking. I’ll keep this command alive until it exits so we don’t leave the user with an uncertain build result.
Assistant
Great, the important part passed: the patched ARM64 GNU build requires only GLIBC_2.18, well below AL2023’s 2.34. Packaging is finishing now.
Assistant
The real ARM64 build passed on bamboo and produced tarballs. I’m doing the lighter local hygiene now: shell lint where available and a quick look at the exact diff/status before I commit.
Assistant
Shellcheck is clean, and the remote built binary’s highest glibc symbol is 2.18. I’ll run formatting checks for the touched shell files, then commit.
Assistant
Formatting and the positive/negative glibc checks are clean. I’m reviewing the final diff once before committing.
Assistant
The diff looks right: one image pin, one reusable checker, and the release script now guards both GNU Linux targets. I’m staging and committing with a conventional message.
Assistant
Committed. I’ll push the branch and open a PR with the build evidence from bamboo, including the exact glibc floor before/after.
Assistant
The branch is clean and authenticated as jdx. Pushing now, then I’ll create the PR.
Assistant
The branch is pushed. I’m creating the PR with the reproduction and bamboo build validation in the body so reviewers don’t have to rediscover the glibc numbers.
Assistant
PR created: #10875. I’ll do one last status/check summary, then I’ll hand you the link and validation notes.
Assistant
Opened PR #10875: fix(build): restore linux arm64 glibc compatibility.
What it does:
Pins aarch64-unknown-linux-gnu back to ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5 instead of floating :main.
Adds scripts/check-glibc.sh.
Keeps the x86_64 AL2 glibc guard and adds an ARM64 AL2023 guard capped at glibc 2.34.
Validation:
Built on bamboo with scripts/build-tarball.sh aarch64-unknown-linux-gnu.
New ARM64 GNU binary max glibc: GLIBC_2.18.
Confirmed current v2026.7.3 ARM64 GNU fails the new check with GLIBC_2.39.
Yes, but it’s mostly a build/toolchain downside, not a runtime downside.
A binary built against older glibc generally runs fine on newer glibc because glibc preserves symbol-version compatibility. The risks are:
Older cross images often have older gcc, binutils, system headers, libstdc++, etc. Native deps can fail to build if they need newer C/C++ features, assembler support, or kernel headers.
You may miss newer libc/syscall conveniences or optimizations, though Rust/libs often handle this with runtime detection or fallbacks.
Very old build images can be annoying/security-stale in CI, even if the final binary is okay.
If we accidentally promise too old a floor, support expectations get weird. In the PR, the binary came out at GLIBC_2.18, but the actual guard only promises AL2023 ARM64 compatibility: <= 2.34.
For this specific fix, the older image did successfully build the serious ARM64 artifact on bamboo, including the native deps, so the downside looks acceptable. The main thing I’d avoid is documenting “we support glibc 2.18” just because this build happens to land there. I’d frame the contract as “ARM64 GNU release artifacts must run on Amazon Linux 2023.”
User
well what I'm wondering is if we should bump the x64 glibc since al2 is now out of date
Assistant
That’s a good question, and it’s a policy question as much as a build one. I’m going to sanity-check the current AL2/AL2023 support dates and glibc versions before giving you a recommendation, because this hinges on what compatibility contract we actually want.
Assistant
I’d stop promising AL2 for x64, but I would not intentionally raise the produced x64 glibc floor unless we need the newer toolchain.
Reason: AL2 reached EOL on June 30, 2026, and AWS recommends AL2023 now. AL2 is glibc 2.26; AL2023 is glibc 2.34. So yes, the CI guard saying “Amazon Linux 2” is now stale.
But raising x64 to 2.34 has collateral damage beyond AL2: it would also drop older-but-still-seen environments like RHEL 8/glibc 2.28, Ubuntu 20.04/glibc 2.31, and Debian 11/glibc 2.31. That may be fine someday, but it’s a broader compatibility decision than “AL2 is dead.”
My recommendation for this PR: change the x64 guard/message from AL2 <=2.26 to AL2023 <=2.34, while leaving the current old image if it still builds. That updates the support contract without needlessly breaking old systems. Later, if the old x64 cross image becomes painful again, we can move x64 to a pinned modern image that still stays under 2.34.
So: bump the x64 policy floor, not necessarily the actual binary floor. That feels like the least surprising move.
Sources: AWS says AL2 EOL is June 30, 2026 and recommends AL2023; AL2023 documents glibc 2.34; AL2 release notes show glibc 2.26; Ubuntu 20.04 packages show glibc 2.31.
User
address pr feedback
Assistant
I’ll pull the PR review/comments and CI state, then patch whatever feedback is actionable on the same branch.
Assistant
The actionable feedback is valid: a missing binary should not make the glibc check pass. I’m changing that branch to fail fast, then I’ll run the checker’s positive/negative cases and push a follow-up commit.
Assistant
The missing-binary path now exits nonzero. I’m validating the exact cases now: missing binary fails, known bad current ARM64 fails, previous/remote compatible binaries pass, and musl/static still passes with “no glibc symbols.”
Assistant
The core cases pass. I’m running the no-glibc musl case and lint/format checks next, then I’ll commit and push.
Assistant
Lint and formatting are clean; the musl check is still downloading/extracting.
Assistant
All validation passed. I’m committing the one-line fix and pushing it to the PR branch now.
Assistant
The feedback fix is pushed. I’ll do a quick PR/check status refresh so we know whether anything else appeared.
Assistant
The follow-up commit is on the PR branch; GitHub has restarted the lightweight checks and CodeRabbit is queued for a re-review. I’ll wait a moment for the quick checks to settle.
I’ll refresh the PR reviews/checks and look for any new actionable comments, then patch the branch in place if there’s something valid.
Assistant
There’s one new nit and it’s fair: after making the missing binary path fatal, the message still says “Warning” and “skipping.” I’m changing the wording to an error sent to stderr while keeping the nonzero exit.
Assistant
I’ll run the targeted smoke checks again, including verifying the error goes to stderr and the pass/fail cases still behave.
Assistant
The targeted behavior is now aligned with the reviewer’s suggestion. I’ll run shellcheck/shfmt, then commit and push the tiny fix.
Assistant
Validation is clean. I’m committing and pushing this follow-up now.
Assistant
The branch is updated. I’ll refresh PR status once more to catch any immediate new comments or failures.
Assistant
The fix is pushed; GitHub has queued the fresh review/checks for the new commit. I’ll wait briefly for the quick ones to settle.