LockfileParser
: Why can "bundler"
appear in dependencies
but not specs
?
#7497
amomchilov
started this conversation in
General
Replies: 1 comment 1 reply
-
I think it's because it's the bundler gem itself, and that one currently gets excluded from the SPECS lockfile section. I guess the rationale originally was that by the time Bundler activates the gems included in the SPECS section, Bundler itself is already running so too late to try to activate the locked version of Bundler itself. We could try avoid this inconsistency in the future but I think that's the motivation for it currently being excluded. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to better understand the various attributes of
Bundler::LockfileParser
, and discovered something interesting.Taking Rubocop's repo as an example, we can see that it has an explicit dependency on bundler:
https://github.com/rubocop/rubocop/blob/c1c320b273b687c5066739a310377c7a1f283d3e/Gemfile#L9
This shows up in
#dependencies
:But not in
#specs
:I think this is happens because the generated
Gemfile.lock
has it in theDEPENDENCIES
section, but not theGEM.specs
section:Here's the full
Gemfile.lock
Why is that?
Beta Was this translation helpful? Give feedback.
All reactions