Skip to content

fix(mise): skip vercel install on Windows - #26420

Merged
kylecarbs merged 1 commit into
mainfrom
fix/mise-vercel-skip-windows
Jun 16, 2026
Merged

fix(mise): skip vercel install on Windows#26420
kylecarbs merged 1 commit into
mainfrom
fix/mise-vercel-skip-windows

Conversation

@blinkagent

@blinkagent blinkagent Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Problem

test-go-pg (windows-2022) has been red on main since the Vercel CLI was added to mise.toml. Every PR that runs Windows CI (including #26389) fails at Restore Go cache -> setup-mise -> mise install, and the :x: CI Failure Slack 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 the npm:vercel backend, which runs:

C:\Windows\system32\cmd.exe /d /s /c node install.js

as an npm post-install script. mise installs node into its own shim dir; node is not on cmd.exe's PATH at the moment npm spawns the post-install script, so it 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,
npm error operable program or batch file.
mise ERROR Failed to install npm:vercel@54.14.0: npm.cmd exited with non-zero status: exit code 1

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 os filter:

vercel = { version = "54.14.0", os = ["linux", "macos"] }

On Windows mise will now skip the install entirely. On Linux/macOS behavior is unchanged, the binary still resolves through the same npm:vercel backend.

Lockfile

os is an install-time filter and has no representation in mise.lock. mise lock against the pinned min_version = "2026.5.12" produces no diff, so the lockfile is intentionally left as-is.

Verification

  • mise trust && mise ls on Linux still resolves vercel 54.14.0 from mise.toml.
  • mise lock against pinned v2026.5.12 is a no-op on mise.lock.
  • Windows runners will report (skipped) for vercel and continue past setup-mise.

Fixes coder/internal#1596.

Created on behalf of @kylecarbs.

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.
@github-actions github-actions Bot added the community Pull Requests and issues created by the community. label Jun 16, 2026
@blinkagent blinkagent Bot removed the community Pull Requests and issues created by the community. label Jun 16, 2026
@blinkagent blinkagent Bot changed the title fix(ci): skip vercel mise install on Windows fix(mise): skip vercel install on Windows Jun 16, 2026
@kylecarbs
kylecarbs enabled auto-merge (squash) June 16, 2026 17:20
@kylecarbs
kylecarbs merged commit 9e7eedc into main Jun 16, 2026
57 of 62 checks passed
@kylecarbs
kylecarbs deleted the fix/mise-vercel-skip-windows branch June 16, 2026 17:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake: Windows CI mise install fails for vercel (node not found)

1 participant