LoginSignup
7
7

More than 5 years have passed since last update.

Travis CI で NoMethodError: undefined method `spec' for nil:NilClass と言われて bundle install できないとき

Last updated at Posted at 2015-12-16

Travis CI に Ruby のコードを push したところ、以下のようなエラーが発生して bundle install がうまく完了しない。

NoMethodError: undefined method `spec' for nil:NilClass

ざっと調べた感じ、rubygems の修正が影響している模様。
https://github.com/rubygems/rubygems/commit/620910aa75c7446e8f8d5af1df5f981e4da86197
Bundler 側では 1.10.0 以降で修正されている。
https://github.com/bundler/bundler/commit/f4481a7e3dbaf7f563e32afbe2cbbb84e3091f16

Travis CI で Bundler が古すぎたときのために、before_installgem update bundler しておくと解決できる。
こんな具合に。
https://github.com/google/google-api-ruby-client/pull/322

以上。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7