From 04b710cc9b4d6eb92e16bb1c1903c715128e4c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=B6nig?= Date: Tue, 10 Nov 2026 21:15:28 +0100 Subject: [PATCH] n8n: 2.45.5 -> 2.47.3 --- overlays/mods/n8n.nix | 16 +++++++++++++--- tests/n8n-overlay-test.nix | 6 +++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/overlays/mods/n8n.nix b/overlays/mods/n8n.nix index 3c1ff95..f008832 100644 --- a/overlays/mods/n8n.nix +++ b/overlays/mods/n8n.nix @@ -29,8 +29,18 @@ # ERR_PNPM_INCONSISTENT_PATCH_HASH. Rewrite the stale references to the # declared hash — exactly what `pnpm install --no-frozen-lockfile` would # converge to. The sed is a no-op once upstream regenerates the lockfile. + # + # n8n@2.47.3 has the same class of defect again: the override + # `undici@7: catalog:undici-v7` was bumped to ^7.30.1 and the package entry + # undici@7.29.1 dropped from the lockfile, but the snapshot of + # @ai-sdk/provider-utils@5.0.70 (added via minimumReleaseAgeExclude) still + # lists `undici: 7.29.1`. pnpm >= 12.9 refuses with + # ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY ("no entry for 'undici@7.29.1'"). + # Point the stale reference at the entry that exists (7.30.1), which is + # exactly where the override resolves it anyway. No-op on clean lockfiles. fixUpstreamLockfile = '' sed -i 's/patch_hash=81ead1b07fc8efda87bd2724dbd876ab49f4a0aa03f96c3770060b2ea47d9e0b/patch_hash=0384abb0bf57b0811e09219dbce0b926741d818285ee77526ad4cb75a60b87a1/g' pnpm-lock.yaml + sed -i -E 's/^(\s+undici: )7\.29\.1$/\17.30.1/' pnpm-lock.yaml ''; # After `pnpm prune --prod` (pnpm 12), walk every workspace package and @@ -65,13 +75,13 @@ ''; in prev.n8n.overrideAttrs (finalAttrs: previousAttrs: { - version = "2.45.5"; + version = "2.47.3"; src = prev.fetchFromGitHub { owner = "n8n-io"; repo = "n8n"; tag = "n8n@${finalAttrs.version}"; - hash = "sha256-YPM8Hlgrll1I+yYj4Q2dWP8bF5nnLCF5VIMpl3N5Lzk="; + hash = "sha256-lw8B5pRY2O+LXWM6gPVHglKJ8SvowfTRoNMeVD8Kd60="; }; pnpmDeps = prev.fetchPnpmDeps { @@ -79,7 +89,7 @@ in pnpm = prev.pnpm_12; fetcherVersion = 4; postPatch = relaxPnpmEngine + fixUpstreamLockfile; - hash = "sha256-rZ3unYg6d0bAnU05e1ejGokIYKI1m7M97NiS+bqdZOE="; + hash = "sha256-np4qMhJJBwpEJA/Zac1WEueUmaufs2wLBaa1BUiBgcM="; }; postPatch = (previousAttrs.postPatch or "") + relaxPnpmEngine + fixUpstreamLockfile; diff --git a/tests/n8n-overlay-test.nix b/tests/n8n-overlay-test.nix index e726d83..affb896 100644 --- a/tests/n8n-overlay-test.nix +++ b/tests/n8n-overlay-test.nix @@ -15,9 +15,9 @@ modifiedPkgs = mkPkgs [self.overlays.modifications]; defaultPkgs = mkPkgs [self.overlays.default]; - expectedVersion = "2.45.5"; - expectedSrcHash = "sha256-YPM8Hlgrll1I+yYj4Q2dWP8bF5nnLCF5VIMpl3N5Lzk="; - expectedPnpmHash = "sha256-rZ3unYg6d0bAnU05e1ejGokIYKI1m7M97NiS+bqdZOE="; + expectedVersion = "2.47.3"; + expectedSrcHash = "sha256-lw8B5pRY2O+LXWM6gPVHglKJ8SvowfTRoNMeVD8Kd60="; + expectedPnpmHash = "sha256-np4qMhJJBwpEJA/Zac1WEueUmaufs2wLBaa1BUiBgcM="; expectedChangelog = "https://github.com/n8n-io/n8n/releases/tag/n8n@${expectedVersion}"; expectedRootNodeModuleSymlinks = [ "ln -s .pnpm/node_modules/sass-embedded node_modules/sass-embedded"