-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not remove pattern from lockfile if it is overridden by resolution #5572
do not remove pattern from lockfile if it is overridden by resolution #5572
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaylieEB can you give this PR a look when you have some time?
expect(lockfile.indexOf('foobar')).toBeGreaterThanOrEqual(0); | ||
}, | ||
); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rather test that we correctly bailout (ie install with resolution settings should correctly bailout during the integrity check
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to me! Thanks!
Summary
This pr addresses issue #5250 and #4778 . Currently if package.json contains resolutions, pattern which is overriden by resolution will be removed from lockfile, which causing integrity-check fail and as following new lockfile being generated. So i just removed code which deletes the pattern and since resolutions test are passing i assuming that part of code should not be there or some test cases are missing. Issue #4778 was fixed with #4793, so i reverted the code from that pr.
Test plan
Added a new test case in resolutions which will fail in a current master.