Closed christiannelson closed 6 years ago
Easily reproducible with these steps (bundler-audit
was chosen because it has a dependency on bundler
, which triggers the bug):
$ bundle init
Writing new Gemfile to /Users/mbrictson/Gemfile
$ echo 'gem "bundler-audit", :group => :development' >> Gemfile
$ bundle install
Fetching gem metadata from https://rubygems.org/..
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using bundler 1.16.0
Using thor 0.20.0
Using bundler-audit 0.6.0
Bundle complete! 1 Gemfile dependency, 3 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ bundle update --group=development
...
NoMethodError: undefined method `version' for nil:NilClass
Proposed fix: #6157
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out why things are going wrong.
What did you do?
I ran the command
bundle update --group=development
. The same error happens when runningbundle update --group=test
as well.What did you expect to happen?
I expected Bundler to update all of the deps in the development group.
What happened instead?
Instead, some deps updated, but then an exception was thrown.
Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
I looked and did not find a very similar issue.
Backtrace
Environment
Bundler Build Metadata
Bundler settings
Gemfile
Gemfile
Gemfile.lock