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 on duplicate dependency in a specification #3864

Merged
merged 2 commits into from Jul 31, 2020

Conversation

bronzdoc
Copy link
Member

Description:

Closes #3676

Warns whenever we have a duplicate runtime dependency

spec.add_runtime_dependency "rails", "~> 3.0", "~> 3.0" #=>WARNING: duplicated rails dependency ["~> 3.0", "~> 3.0"]


I will abide by the code of conduct.

@colby-swandale
Copy link
Member

I'm ok for this to be merged, but I'm curious, are there any examples where people are doing this?

@deivid-rodriguez
Copy link
Member

I detected cases like this when inspecting server data while reviewing some recent data fixes on the rubygems.org side, like rubygems/rubygems.org#2343 and related PRs.

I figured it was probably due to typos and I thought it'd be nice to detect them when gems are built.

@bronzdoc bronzdoc merged commit b752697 into master Jul 31, 2020
@bronzdoc bronzdoc deleted the warn-duplicate-dependency-specification branch July 31, 2020 01:47
@hsbt hsbt added this to the RubyGems 3.2.0/Bundler 2.2.0 milestone Sep 23, 2020
hsbt pushed a commit that referenced this pull request Sep 23, 2020
…ification

Warn on duplicate dependency in a specification
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.

Warn duplicated dependency specifications
5 participants