Skip to content
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

Warn lockfiles with incorrect resolutions #4459

Merged
merged 5 commits into from Mar 17, 2021

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

I was going to investigate #4319, and I noticed that the OP shared a lockfile that includes an invalid resolution 😨.

My guess (and hope) is that the OP edited the lockfile directly in an incorrect way. The other possibility (which I hope it's not the case), is that bundler is generating these incorrect lockfiles.

In any case, I think it doesn't hurt to print a warning about the situation, because right now this results in bundler seamlessly installing gems that are incompatible with each other.

What is your fix for the problem, implemented in this PR?

My fix is to check whether specs in the lockfile are compatible with all dependencies in there, and print a warning otherwise.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the fail_lockfiles_with_incorrect_resolutions branch from 48c6a89 to f7a25dc Compare March 17, 2021 10:15
@deivid-rodriguez deivid-rodriguez merged commit 1140686 into master Mar 17, 2021
@deivid-rodriguez deivid-rodriguez deleted the fail_lockfiles_with_incorrect_resolutions branch March 17, 2021 11:30
deivid-rodriguez added a commit that referenced this pull request Mar 18, 2021
…resolutions

Warn lockfiles with incorrect resolutions

(cherry picked from commit 1140686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants