Skip to content

Fix crash when duplicating a dev dependency in Gemfile & gemspec#7215

Merged
deivid-rodriguez merged 1 commit into
masterfrom
fix-dup-dev-dependencies-crash
Dec 1, 2023
Merged

Fix crash when duplicating a dev dependency in Gemfile & gemspec#7215
deivid-rodriguez merged 1 commit into
masterfrom
fix-dup-dev-dependencies-crash

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

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

We recently started warning duplicated development dependencies in Gemfile & gemspec with different requirements in #6014.

However, that caused a regression when overriding the dependency source from the gemspec in the Gemfile would no longer work.

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

The fix is to prefer the Gemfile dependency and don't warn.

Fixes #6014 (comment).

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez marked this pull request as draft December 1, 2023 16:06
@deivid-rodriguez deivid-rodriguez force-pushed the fix-dup-dev-dependencies-crash branch from db87eb1 to f24b079 Compare December 1, 2023 17:46
@deivid-rodriguez deivid-rodriguez force-pushed the fix-dup-dev-dependencies-crash branch from f24b079 to e78c0a4 Compare December 1, 2023 19:04
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review December 1, 2023 19:04
@deivid-rodriguez deivid-rodriguez merged commit 468e166 into master Dec 1, 2023
@deivid-rodriguez deivid-rodriguez deleted the fix-dup-dev-dependencies-crash branch December 1, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants