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

A rake build failed because of missing bundler/dep_proxy #9333

Closed
ghost opened this Issue Mar 14, 2018 · 7 comments

Comments

Projects
None yet
5 participants
@ghost

ghost commented Mar 14, 2018

Duplicate of: bundler/bundler#6340. I really think this is more of a bundler issue than one of travis-ci but at least maybe I'll get to fix the problem.

Here is the said build: https://travis-ci.org/tech-angels/vandamme/builds/353287717. The error is happening at https://travis-ci.org/tech-angels/vandamme/jobs/353287720#L852.

As you can see the error is only happening with ruby-head.

The only change in the code base is that I updated dependencies. Previous builds were successful.

$ bundle exec rake
bundler: failed to load command: rake (/home/travis/build/tech-angels/vandamme/vendor/bundle/ruby/2.6.0/bin/rake)
LoadError: cannot load such file -- bundler/dep_proxy
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:888:in `block (2 levels) in expand_dependencies'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:887:in `each'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:887:in `block in expand_dependencies'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:874:in `each'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:874:in `expand_dependencies'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:806:in `converge_locked_specs'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:247:in `resolve'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:170:in `specs'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:237:in `specs_for'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/definition.rb:226:in `requested_specs'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:108:in `block in definition_method'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:20:in `setup'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/gems/2.6.0/gems/bundler-1.16.1/lib/bundler/setup.rb:10:in `<top (required)>'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /home/travis/.rvm/rubies/ruby-head/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59:in `require'
@ghost

This comment has been minimized.

ghost commented Mar 14, 2018

I fixed it by adding before_install: gem install bundler to .travis.yml.

@ghost ghost closed this Mar 14, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

samoli added a commit to samoli/classifier that referenced this issue Mar 21, 2018

kpaulisse added a commit to github/octocatalog-diff that referenced this issue Mar 29, 2018

@aprescott

This comment has been minimized.

aprescott commented Mar 29, 2018

I'm seeing this same issue across multiple Ruby versions (2.5.1, 2.4.4, etc.). It looks like it previously happened because of #8978. Not sure if this is a regression somewhere.

ChrisWilding added a commit to ChrisWilding/merchants-guide-to-the-galaxy that referenced this issue Mar 29, 2018

nertzy added a commit to Casecommons/pg_search that referenced this issue Mar 29, 2018

@aripollak

This comment has been minimized.

aripollak commented Mar 29, 2018

Can this ticket be reopened? Ideally this would be fixed on Travis instead of needing to add a workaround to .travis.yml.

@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented Mar 30, 2018

I guess #9383 has (slightly) more up-to-date information on this.

woodruffw added a commit to kbsecret/kbsecret that referenced this issue Mar 30, 2018

woodruffw added a commit to kbsecret/kbsecret that referenced this issue Mar 30, 2018

danielbayerlein added a commit to danielbayerlein/middleman-google-analytics that referenced this issue Mar 30, 2018

AnaTofuZ added a commit to coderdojo-japan/coderdojo.jp that referenced this issue Apr 2, 2018

update Ruby 2.4.1 to 2.5.1
fix #312

Rubyを2.5.1にアップデートしました。またtravis ciの方でbundlerに関するbug
が報告されている様なので,travis.ymlの方に before_installを追記しています。
このbefore_installは下記のissueが解決したら削除を行う予定です

cf.travis-ci/travis-ci#9333 (comment)

ashmaroli referenced this issue in jekyll/jekyll Apr 3, 2018

Fix build on Travis
Co-Authored-By: ashmaroli <ashmaroli@users.noreply.github.com>

lagartoflojo added a commit to SUSE/rmt that referenced this issue May 18, 2018

gbp added a commit to mysociety/infreemation-ruby that referenced this issue May 18, 2018

gbp added a commit to mysociety/foi-for-councils that referenced this issue May 18, 2018

gbp added a commit to mysociety/foi-for-councils that referenced this issue May 18, 2018

Initial Travis configuration
Added Postgres and Redis services and updates bundler to fix
travis-ci/travis-ci#9333

seanpdoyle added a commit to thoughtbot/json_matchers that referenced this issue May 18, 2018

Update Travis' System Gems
Update system gems before install to fix issue from CI:

```
bundler: failed to load command: rake (/home/travis/build/tech-angels/vandamme/vendor/bundle/ruby/2.6.0/bin/rake)
LoadError: cannot load such file -- bundler/dep_proxy
```

travis-ci/travis-ci#9333 (comment)
@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented May 18, 2018

I'm going to close this as a duplicate of #8969 (comment).

Hi, everyone,

I think I tracked down the issue to an older version of RubyGems in use by the current Ruby 2.5.1, 2.5.0, 2.4.4 archives (there may be others). I've repackaged the affected Linux archives so that they use RubyGems 2.7.7 (there should be a line in your build log gem --version inside the ruby --version fold; cf. https://travis-ci.com/BanzaiMan/vandamme/builds/73872255#L470). If applicable, please try restarting the affected job, or drop the gem install bundler workaround and test the latest archive, and please report the results here.

Thank you!

@driv3r

This comment has been minimized.

driv3r commented Jul 6, 2018

still occurs on 2.6 preview 2

madhusudhan1234 pushed a commit to madhusudhan1234/rubynepal.github.io that referenced this issue Sep 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment