You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove fetcherVersion = 1 and 2 from fetchPnpmDeps #494184
0.kind: enhancementAdd something new or improve an existing system.5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problems6.topic: nodejsNode.js is a free, open-source, cross-platform JavaScript runtime environment
I was thinking of a slower, passive migration where we only allow fetcherVersion >= 3 for the upcoming pnpm_11 and we remove the older versions when the majority of packages have migrated. This would take a few months or even years though as the packages/upstreams are not the fastest with migrating to the latest version. Instances with grep:
pnpm_8: 19
pnpm_9: 184 (first release is Apr 16, 2024)
pnpm_10: 139 (first release is Jan 7, 2025)
I'm not against an active migration, but I think we should have a longer period of fetchPnpmDeps warning for older versions rather than throwing immediately. I think phasing out versions 1 and 2 can be in the same PR, the treewide is fine how you started it.
make fetcherVersion = 3 default and remove need to specify it?
Please don't do this. The reason fetcherVersion was introduced in the first place is to allow us to modify the FOD output without having to regenerate hashes for all instances. Sure, we can control hashes inside nixpkgs (although mass hash changes for updates is discouraged), but out of tree pnpm packages will break.
For the second fetcher version version (first time we wanted to modify it) it solved a bug where the output was not reproducible and this solution changed most existing hashes.
So phasing out is out of the question, and even though it's +1 line for each package, I'd like to keep the version explicit otherwise from that change we'd need to assume the default is 3, maybe in the future we introduce a 4th version and make that the default, people who updated nixpkgs with default version 3 to default 4 will experience breakage, even if it's likely uncommon.
The nice part about Nixpkgs is we can just mass migrate whenever we want to. There's no reason to wait if someone wants to put in the effort. There's no reason to be passive.
I do think that rather than removing them immediately, letting them emit a warning for a release cycle is good for external consumers ("this will stop working in 26.11, please migrate" or something).
0.kind: enhancementAdd something new or improve an existing system.5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problems6.topic: nodejsNode.js is a free, open-source, cross-platform JavaScript runtime environment
Activity
qweered commentedon Feb 26, 2026
cc @gepbird
gepbird commentedon Feb 26, 2026
I was thinking of a slower, passive migration where we only allow
fetcherVersion >= 3for the upcomingpnpm_11and we remove the older versions when the majority of packages have migrated. This would take a few months or even years though as the packages/upstreams are not the fastest with migrating to the latest version. Instances with grep:pnpm_8: 19pnpm_9: 184 (first release is Apr 16, 2024)pnpm_10: 139 (first release is Jan 7, 2025)I'm not against an active migration, but I think we should have a longer period of
fetchPnpmDepswarning for older versions rather than throwing immediately. I think phasing out versions 1 and 2 can be in the same PR, the treewide is fine how you started it.Please don't do this. The reason
fetcherVersionwas introduced in the first place is to allow us to modify the FOD output without having to regenerate hashes for all instances. Sure, we can control hashes inside nixpkgs (although mass hash changes for updates is discouraged), but out of tree pnpm packages will break.For the second fetcher version version (first time we wanted to modify it) it solved a bug where the output was not reproducible and this solution changed most existing hashes.
So phasing out is out of the question, and even though it's +1 line for each package, I'd like to keep the version explicit otherwise from that change we'd need to assume the default is 3, maybe in the future we introduce a 4th version and make that the default, people who updated nixpkgs with default version 3 to default 4 will experience breakage, even if it's likely uncommon.
cc @Scrumplex
RossSmyth commentedon Feb 26, 2026
The nice part about Nixpkgs is we can just mass migrate whenever we want to. There's no reason to wait if someone wants to put in the effort. There's no reason to be passive.
I do think that rather than removing them immediately, letting them emit a warning for a release cycle is good for external consumers ("this will stop working in 26.11, please migrate" or something).
qweered commentedon Apr 24, 2026
Opened #513215
qweered commentedon Apr 27, 2026
Opened 5 more prs migrating all fetcherVersion 2 -> 3, see header #494184 (comment)
qweered commentedon Apr 28, 2026
cc @gepbird @Scrumplex for review
gepbird commentedon Jun 3, 2026
Thanks for the cleanup @qweered !