Repository navigation
pnpm.fetchDeps: error if lockfile version has a mismatch - #317739
Conversation
4b6584c to
a202382
Compare
There was a problem hiding this comment.
In a similar vein as Python relaxDepsHook, this should probably be a flag that's off by default.
a202382 to
e376b03
Compare
27583fd to
8aa3b07
Compare
|
I've removed |
doronbehar
left a comment
There was a problem hiding this comment.
Nit besides the comment below: The first commit message should start with pnpm.fetchDeps,
There was a problem hiding this comment.
I started with some corrections and improvements, and continued with a suggested way to overcome this check.
| echo "ERROR: lockfileVersion in pnpm-lock.yaml is to new for the provided pnpm version ${lib.versions.major pnpm.version}!" | |
| echo "ERROR: lockfileVersion $lockfileVersion in pnpm-lock.yaml is" \ | |
| "too new for the provided pnpm version" \ | |
| "${lib.versions.major pnpm.version}! Set" \ | |
| "pnpmDontCheckLockfileVersion=true to avoid this error if you're" \ | |
| "sure it won't cause other issues" >&2 |
There was a problem hiding this comment.
That won't do anything, as pnpm will fail with a rather cryptic error message anyway.
Can you share more details about the issue that made you remove it? |
It needed to be in mkDerivation and inside fetchDeps and got more complicated the more deeply I tested it. |
8aa3b07 to
7a1cd1f
Compare
Description of changes
Tested while updating youtube-music
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.