From af3ce11a16b2a296399cd7f84bfb59f965ed831f Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Fri, 13 Nov 2026 02:47:19 -0500 Subject: [PATCH] fix(nix): pin pnpm 11.27.0, the version nixpkgs now provides --- ...-moves-pnpm-past-the-packagemanager-pin.md | 30 +++++++++++++++++++ package.json | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docs/solutions/build-errors/nix-outputs-fail-when-nixpkgs-moves-pnpm-past-the-packagemanager-pin.md diff --git a/docs/solutions/build-errors/nix-outputs-fail-when-nixpkgs-moves-pnpm-past-the-packagemanager-pin.md b/docs/solutions/build-errors/nix-outputs-fail-when-nixpkgs-moves-pnpm-past-the-packagemanager-pin.md new file mode 100644 index 000000000..5cd0e9104 --- /dev/null +++ b/docs/solutions/build-errors/nix-outputs-fail-when-nixpkgs-moves-pnpm-past-the-packagemanager-pin.md @@ -0,0 +1,30 @@ +--- +title: Every Nix output fails when a nixpkgs bump moves pnpm past package.json's packageManager pin +date: 2026-11-13 +category: build-errors +problem_type: build_error +severity: high +symptoms: + - "mkPnpmWorkspacePackages: package.json pins pnpm@11.25.0 but the build uses pnpm 11.27.0; pin the version Nix provides" + - The Nix cache push job reports "nothing built, so nothing was pushed" +tags: + - nix + - pnpm + - packageManager + - nixpkgs + - dependabot +--- + +# Every Nix output fails when a nixpkgs bump moves pnpm past package.json's packageManager pin + +## Problem + +The nixpkgs bump to f4a03c0 (#91) moved the pnpm that Nix provides from 11.25.0 to 11.27.0. `mkPnpmWorkspacePackages` refuses to build when `package.json`'s `packageManager` names a different pnpm, so `arethetypeswrong-cli`, `pnpm-store` and `workspace-tarballs` all failed, and the cache push had nothing to push. + +## Fix + +Set `packageManager` to `pnpm@11.27.0`, the version Nix provides. The flake outputs evaluate again. + +## Prevention + +A nixpkgs bump that changes pnpm's version needs the `packageManager` pin moved in the same PR. Look for this refusal in the nixpkgs PR's Nix job before merging it. diff --git a/package.json b/package.json index aef78a730..a3f656562 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "license": "Apache-2.0", "name": "are-the-types-wrong", - "packageManager": "pnpm@11.25.0", + "packageManager": "pnpm@11.27.0", "private": true, "scripts": { "attw": "turbo --concurrency=${TURBO_CONCURRENCY:-50%} attw",