Skip to content

Commit

Permalink
Ignore "gem "bundler" cannot be uninstalled because it is a default g…
Browse files Browse the repository at this point in the history
…em" error

when tested with ruby-head

This pull request attempts to ignore the following error
when tested with ruby-head which has bundler as a default gem.

```ruby
$ rvm @global do gem uninstall bundler --all --ignore-dependencies --executables
ERROR:  While executing gem ... (Gem::InstallError)

    gem "bundler" cannot be uninstalled because it is a default gem

The command "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables" failed and exited with 1 during .
```

Refer https://travis-ci.org/rails/rails/jobs/295600391

This workaround should be removed once rubygems/bundler#6072 is addressed.
  • Loading branch information
yahonda committed Nov 1, 2017
1 parent a235b9f commit 1944520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bundler_args: --without test --jobs 3 --retry 3
before_install:
- "rm ${BUNDLE_GEMFILE}.lock"
- "travis_retry gem update --system"
- "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables"
- "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables || true"
- "travis_retry gem install bundler -v 1.15.4"
- "[ -f /tmp/beanstalkd-1.10/Makefile ] || (curl -L https://github.com/kr/beanstalkd/archive/v1.10.tar.gz | tar xz -C /tmp)"
- "pushd /tmp/beanstalkd-1.10 && make && (./beanstalkd &); popd"
Expand Down

0 comments on commit 1944520

Please sign in to comment.