-
-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: a broken lockfile should be fixed
Unless frozenLockfile is true, a broken lockfile should be fixed and installation should succeed. PR #2440
- Loading branch information
Showing
6 changed files
with
115 additions
and
53 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/filter-lockfile/src/LockfileMissingDependencyError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { WANTED_LOCKFILE } from '@pnpm/constants' | ||
import PnpmError from '@pnpm/error' | ||
|
||
export default class LockfileMissingDependencyError extends PnpmError { | ||
constructor (relDepPath: string) { | ||
const message = `Broken lockfile: no entry for '${relDepPath}' in ${WANTED_LOCKFILE}` | ||
super('LOCKFILE_MISSING_DEPENDENCY', message, { | ||
hint: 'This issue is probably caused by a badly resolved merge conflict.\n' + | ||
'To fix the lockfile, run \'pnpm install --no-frozen-lockfile\'.', | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters