puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

The release of bundler 2.0 breaks travis-ci tests

Open jradmacher opened this issue 6 years ago • 1 comments
trafficstars

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4
  • Ruby: 2.1.9
  • Distribution: ubuntu trusty (as provided by travis-ci)
  • Module version: master, probably any version

How to reproduce (e.g Puppet code you use)

Run any travis-ci build.

What are you seeing

travis-ci failes with an error, which is different from a normal build failiure.

Output log

https://travis-ci.org/voxpupuli/puppet-python/jobs/474908824

The program 'bundle' is currently not installed. To run 'bundle' please ask your administrator to install the package 'bundler'```

## Workaround
`diff --git a/.travis.yml b/.travis.yml
index 06169e3..e20c74e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,8 @@ language: ruby
 cache: bundler
 before_install:
   - rm -f Gemfile.lock
+  - gem install bundler -v '< 2' --conservative
+
 script:
   - 'bundle exec rake $CHECK'
 matrix:
`

## More Information
https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html

jradmacher avatar Jan 04 '19 16:01 jradmacher

Hi, This got already fixed in our modulesync_config repo: https://github.com/voxpupuli/modulesync_config/pull/535

We just have to roll it out to our modules.

bastelfreak avatar Jan 04 '19 17:01 bastelfreak