fix(mise): skip vercel install on Windows - #26420
Merged
Merged
Conversation
The Vercel CLI was added to the top-level [tools] block in mise.toml,
which made mise try to install it on every runner including Windows.
Vercel ships via `npm:vercel`, which spawns `node install.js` from
cmd.exe during install. mise installs node into its own shim dir, so
node is not on cmd.exe PATH at the moment npm runs the post-install
script, and the install fails with:
npm error command C:\\Windows\\system32\\cmd.exe /d /s /c node install.js
npm error "node" is not recognized as an internal or external command
mise ERROR Failed to install npm:vercel@54.14.0: npm.cmd exited with non-zero status: exit code 1
This aborts setup-mise on every Windows job, so test-go-pg (windows-2022)
has been red on `main` since the Vercel entry landed, and every PR with
a Windows-relevant change is blocked too.
The CLI is only used to deploy/preview from dogfood workspaces (Linux),
so restrict it to linux/macos via the documented `os` filter. The
lockfile is unchanged: `os` is an install-time filter, not a lockfile
platform entry.
Fixes coder/internal#1596.
kylecarbs
approved these changes
Jun 16, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
test-go-pg (windows-2022)has been red onmainsince the Vercel CLI was added tomise.toml. Every PR that runs Windows CI (including #26389) fails atRestore Go cache-> setup-mise ->mise install, and the:x: CI FailureSlack notifications have been firing ~hourly because of it.The Vercel CLI lives in the top-level
[tools]block, so mise tries to install it on every runner. It is installed via thenpm:vercelbackend, which runs:as an npm post-install script. mise installs node into its own shim dir;
nodeis not on cmd.exe's PATH at the moment npm spawns the post-install script, so it fails with:The whole setup-mise step aborts, so the rest of the job is skipped. Tracked in coder/internal#1596.
Fix
The Vercel CLI is only used to deploy / preview from dogfood workspaces (Linux). Restrict it to linux/macos via the documented
osfilter:On Windows mise will now skip the install entirely. On Linux/macOS behavior is unchanged, the binary still resolves through the same
npm:vercelbackend.Lockfile
osis an install-time filter and has no representation inmise.lock.mise lockagainst the pinnedmin_version = "2026.5.12"produces no diff, so the lockfile is intentionally left as-is.Verification
mise trust && mise lson Linux still resolvesvercel 54.14.0frommise.toml.mise lockagainst pinned v2026.5.12 is a no-op onmise.lock.(skipped)forverceland continue past setup-mise.Fixes coder/internal#1596.
Created on behalf of @kylecarbs.