fix: aube npm lifecycle scripts + claude-memory-backup off-main guard - #24
Merged
Conversation
mise 2026.8.5 changed the npm backend: it now resolves and links packages itself instead of shelling out to npm, and it passes --ignore-scripts. @endevco/aube ships no bin/ -- its "preinstall" runs installArchSpecificPackage.js, which downloads the ~48M arch-specific binary. With scripts skipped, mise installed a package with no executable, recorded backend metadata saying so, and dropped the aube / aubr / aubx shims entirely. `aube` became command-not-found. Both settings are required; verified by removing each in turn: - shell_out = true alone: npm runs but still with --ignore-scripts, and mise warns it skipped the preinstall. - npm_args alone (shell_out = false): mise's internal installer ignores it and the binary is never fetched. Together: install is clean, `aube --version` and `aubx --version` both report 1.38.1 through the shims. shell_out = true does reintroduce npm subprocesses, which is the surface the 2026-08-12 fork bomb recursed through. That is acceptable only because the box now runs mise 2026.8.5, which includes jdx/mise#8475 (shims stripped from dependency_env PATH). Do not set this on a mise older than 2026.8.2. Lives here rather than machine-local ~/.config/mise/config.toml so a fresh machine reproduces a working aube. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARNZyPcAj3K2LhupCDn5gQ
The commit lands on whatever branch the mirror repo has checked out, but the push below it names main. On any other branch that pair strands the backup: the commit goes to the feature branch, `push origin main` ships an unchanged main, and the script exits 0 — indistinguishable from "mirrored, nothing changed". Found 2026-08-13 with the mirror on feat/selective-prod-tooling. It now refuses and says which branch it found. Already live in ~/.local/bin; this brings the source into line via `chezmoi add` so a fresh machine inherits the guard. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCmHuUXi7TtpGauNarsn88
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.
Two independent fixes that were sitting unpushed on this box.
fix: let aube's preinstall run so mise installs a working binary(c45e582) —npm.shell_outalone isn't enough; aube's preinstall is what fetches the arch-specific binary, so withoutnpm_args = "--ignore-scripts=false"mise installs a package whose shims don't work.fix: claude-memory-backup must not silently no-op off main(5493890) — the commit lands on the checked-out branch while the push namesmain. Off main, the backup goes to the feature branch,push origin mainships an unchanged main, and the script exits 0 — which reads exactly like "mirrored, nothing changed". Found today with the mirror onfeat/selective-prod-tooling. It now refuses and names the branch. The guard was already live in~/.local/bin; this brings the chezmoi source into line so a fresh machine inherits it.Verified on this box:
chezmoi statusis clean, a fresh interactive zsh starts without error, andmise install -yreports all tools installed.