Skip to content

Wrong version of bundler is used if there are 2 versions #3523

@Pr0p1k

Description

@Pr0p1k

For example:
Project: diaspora
I have system Ruby 2.5.1 (reproducible with rvm either). I have bundlers 2.1.2 and 1.17.3 installed and run bundle install -> lockfile is bundled with 2.1.2
Reproduce:

  1. Ensure you have bundler versions pre 2.0 and 2+
  2. Run bundle install -> 2+ version is used (see BUNDLED WITH in lockfile)
  3. Run Rails application without bundle exec

Expected: Bundler version from bundled with is used. (2+ here)
Actual: Older one is used and hence we have an error: You must use Bundler 2 or greater with this lockfile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions