mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix: don't upgrade the lockfile format during frozen lockfile install (#8006)
close #7991
This commit is contained in:
6
.changeset/quick-walls-report.md
Normal file
6
.changeset/quick-walls-report.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/core": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Don't upgrade the lockfile format on `pnpm install --frozen-lockfile` [#7991](https://github.com/pnpm/pnpm/issues/7991).
|
||||
@@ -471,7 +471,10 @@ Note that in CI environments, this setting is enabled by default.`,
|
||||
wantedLockfile: maybeOpts.ignorePackageManifest ? undefined : ctx.wantedLockfile,
|
||||
useLockfile: opts.useLockfile && ctx.wantedLockfileIsModified,
|
||||
})
|
||||
if (opts.useLockfile && opts.saveLockfile && opts.mergeGitBranchLockfiles || !upToDateLockfileMajorVersion) {
|
||||
if (
|
||||
opts.useLockfile && opts.saveLockfile && opts.mergeGitBranchLockfiles ||
|
||||
!upToDateLockfileMajorVersion && !opts.frozenLockfile
|
||||
) {
|
||||
await writeLockfiles({
|
||||
currentLockfile: ctx.currentLockfile,
|
||||
currentLockfileDir: ctx.virtualStoreDir,
|
||||
|
||||
Reference in New Issue
Block a user