-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(shim): avoid panic if user has malformed lockfile (#8461)
### Description Since this function is now possibly getting user input, we shouldn't hard crash if whatever they have listed in their lockfile doesn't pass the `semver` crate's version requirement. This shouldn't happen as all lockfiles are generated with fully resolved versions, but this prevents a panic if that expectation changes. ### Testing Instructions Added unit tests that would trigger a panic previously
- Loading branch information
1 parent
a8697c8
commit 06b4f3d
Showing
1 changed file
with
27 additions
and
25 deletions.
There are no files selected for viewing
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