Build fails while building ohai
Started happening today, no packages can be build:
[Software: ohai] I | Could not restore from cache
[GitFetcher: ohai] I | Cleaning existing clone
[Builder: ohai] I | Starting build
[Builder: ohai] I | Environment:
[Builder: ohai] I | CFLAGS="-I/opt/gitlab/embedded/include"
[Builder: ohai] I | CPPFLAGS="-I/opt/gitlab/embedded/include"
[Builder: ohai] I | CXXFLAGS="-I/opt/gitlab/embedded/include"
[Builder: ohai] I | LDFLAGS="-Wl,-rpath,/opt/gitlab/embedded/lib -L/opt/gitlab/embedded/lib"
[Builder: ohai] I | LD_RUN_PATH="/opt/gitlab/embedded/lib"
[Builder: ohai] I | PATH="/opt/gitlab/bin:/opt/gitlab/embedded/bin:/home/gitlab_ci_multi_runner/gems/ruby/2.1.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
[Builder: ohai] I | PKG_CONFIG_PATH="/opt/gitlab/embedded/lib/pkgconfig"
[Builder: ohai] I | $ /opt/gitlab/embedded/bin/bundle install --without development
[Builder: ohai] I | bundle `install --without development': 18.9831s
[Builder: ohai] I | Build ohai: 18.9858s
The following shell command exited with status 6:
$ CFLAGS=-I/opt/gitlab/embedded/include CPPFLAGS=-I/opt/gitlab/embedded/include CXXFLAGS=-I/opt/gitlab/embedded/include LC_ALL=C LDFLAGS=-Wl,-rpath,/opt/gitlab/embedded/lib -L/opt/gitlab/embedded/lib LD_RUN_PATH=/opt/gitlab/embedded/lib PATH=/opt/gitlab/bin:/opt/gitlab/embedded/bin:/home/gitlab_ci_multi_runner/gems/ruby/2.1.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PKG_CONFIG_PATH=/opt/gitlab/embedded/lib/pkgconfig /opt/gitlab/embedded/bin/bundle install --without development
Output:
Your Gemfile lists the gem chef (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching git://github.com/chef/chef.git
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Bundler could not find compatible versions for gem "net-ssh":
In Gemfile:
chef (>= 0) ruby depends on
net-ssh (~> 2.6) ruby
chef (>= 0) ruby depends on
net-ssh (3.0.1)