Repository navigation
fix(mise): pin node on Windows and limit dart to work - #194
Merged
Merged
Conversation
The template had no node, so applying it on Windows would remove the node 24.14.0 pin from the installed config. `agents` (npm:@aguil/agents) starts through node and fails without it on PATH. Limit it to Windows: macOS and Linux get node from Homebrew and apt, and an unrestricted pin would shadow those. The lock entry covers Windows only and changes no other tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dart is only needed for work, but the global mise config installed it on every profile. Render its entry, and the comment explaining its http backend, only when the chezmoi profile is work. The shared mise.lock keeps its dart entries for work machines. Running `mise lock --global` on a personal machine prunes them from the installed lock, so do not copy that lock back into the source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aguil
marked this pull request as ready for review
November 23, 2026 02:39
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.
Why the change
Applying the global mise config on a personal Windows machine would remove Node, which breaks the
agentsCLI, and install Dart, which only work needs, so the template now pins Node on Windows and limits Dart to the work profile.Special things to note
mise.lockkeeps its Dart entries for work machines, butmise lock --globalon a personal machine prunes them from the installed lock, so that lock should not be copied back into the repo.javaandyazi.Change outline
Global mise template:
Which machines get each tool:
Running
agentson Windows outside a repo with its own Node, after the template is applied:Changed files:
Details
The applied global mise config on Windows has
node = "24.14.0", but the template never hadnode.chezmoi diffshows that applying the template would remove it.agents(npm:@aguil/agents) starts through Node. With Bun but no Node on PATH, both 0.9.2 and 0.9.3 fail with'node' is not recognized; with Node 24.14.0 both run.The pin is limited to Windows because the repo installs Node through Homebrew (
Brewfile) and apt (linux/apt-packages.txt) elsewhere. The lock entry coverswindows-x64andwindows-x64-baselineonly, with the same Windows checksum as the lock already applied on this machine.The Dart entry is unchanged. It and the comment explaining its http backend moved inside the work profile condition.
Verification (Windows, isolated mise data directory)
mise install --dry-runexits 0 for both profiles; Dart is listed for work only, Node for bothmise lock --global nodeadds only thenodeentrymise install --locked nodeinstalls 24.14.0agents --versionruns with that Node and Bunchezmoi applywas not run🤖 Generated with Claude Code