Skip to content
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

Bundler and Ruby versions specified in the Gemfile are not respected #1308

Closed
hegyi opened this issue Feb 19, 2019 · 1 comment
Closed

Bundler and Ruby versions specified in the Gemfile are not respected #1308

hegyi opened this issue Feb 19, 2019 · 1 comment
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements

Comments

@hegyi
Copy link

hegyi commented Feb 19, 2019

Gemfile specifies the ruby version:

ruby '2.5.3'

The same ruby version is also expressed in a .ruby-version file:

# .ruby-version file in project root
2.5.3

Gemfile.lock specifies the version of bundler:

BUNDLED WITH
  1.17.2

Running the scan results in anerror:

[ERROR]: Bundler - IOException: Running 'bundle install --path vendor/bundle' in 'SOME_PATH' failed with exit code 18:
Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Your Ruby version is 2.5.1, but your Gemfile specified 2.5.3

Maybe using RVM or Rbenv with the gemset feature would be an option?

@sschuberth sschuberth added enhancement Issues that are considered to be enhancements analyzer About the analyzer tool labels Feb 19, 2019
@sschuberth
Copy link
Member

@hegyi, ORT's Bundler implementation has been massively changed since your report. As we're using JRuby programmatically now, I'm pretty sure the issue shouldn't occur anymore, thus I'm closing this. Please reopen if you still see this issue nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements
Projects
None yet
Development

No branches or pull requests

2 participants