Skip to content

Actually consider development dependencies (v2)#5971

Merged
deivid-rodriguez merged 1 commit intomainfrom
deivid-rodriguez/actually-consider-dev-deps-2
Oct 25, 2022
Merged

Actually consider development dependencies (v2)#5971
deivid-rodriguez merged 1 commit intomainfrom
deivid-rodriguez/actually-consider-dev-deps-2

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

As can be seen in CI logs:

(...)
Installing simplecov-console 0.9.1
Fetching rubocop 1.37.1
Installing rubocop 1.37.1
Fetching aws-sdk-codecommit 1.51.0
Installing aws-sdk-codecommit 1.51.0
(...)

#5969 did not fix the issue since it's still installing the latest RuboCop.

I think this is an issue in Bundler, but let's add a workaround for it.

Currently, if you add a development dependency to a Gemfile through a gemspec, with the gemspec DSL, and later on in the Gemfile you explicitly add it again, Bundler will silently prefer the latter specification even if the former is more restrictive.

I think Bundler should either warn, or prefer the most restrictive one, but to avoid this issue we can remove the duplicated dependency specification.

I think this is an issue in Bundler, but let's add a workaround for it.

Currently, if you add a development dependency to a Gemfile through a
gemspec, with the `gemspec` DSL, and later on in the Gemfile you
explicitly add it again, Bundler will silently prefer the latter
specification even if the former is more restrictive.

I think Bundler should either warn, or prefer the most restrictive one,
but to avoid this issue we can remove the duplicated dependency
specification.
@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner October 25, 2022 09:57
@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

It did they right thing now. From omnibus job logs:

(...)
Installing simplecov-console 0.9.1
Fetching rubocop 1.36.0
Installing rubocop 1.36.0
Fetching aws-sdk-codecommit 1.51.0
(...)

@deivid-rodriguez deivid-rodriguez merged commit efaca43 into main Oct 25, 2022
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/actually-consider-dev-deps-2 branch October 25, 2022 10:05
@jeffwidman
Copy link
Copy Markdown
Member

Is this something that we should permanently leave out, or should we put this back (with a version pin) once Bundler starts warning if there's drift between two specified versions?

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

I think it should be permanently left out. I don't think the duplication buys us anything.

@pavera pavera mentioned this pull request Oct 31, 2022
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.

3 participants