diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-18 16:38:51 +0100 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-18 16:38:51 +0100 |
| commit | 0c71faa0effe4d58c73e166b5fd0d632ba67b480 (patch) | |
| tree | ea635be982e94e705074f623fd4c90ef773057eb /lib | |
| parent | 5565aa416e46192dcec4a0717833df05eb44d6dc (diff) | |
| download | bundler-0c71faa0effe4d58c73e166b5fd0d632ba67b480.tar.gz | |
Fix warning message about bundler versionfix_upgrade_instructions
To actually make the warning go away, we need to recommend exactly
installing the locked version. Otherwise the latest version gets
installed, but not used to being a different major than the one locked,
so the warning stays.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/lockfile_parser.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb index a7d4dc56b7..cd42919da2 100644 --- a/lib/bundler/lockfile_parser.rb +++ b/lib/bundler/lockfile_parser.rb @@ -107,9 +107,9 @@ module Bundler when 0 if current_version < bundler_version Bundler.ui.warn "Warning: the running version of Bundler (#{current_version}) is older " \ - "than the version that created the lockfile (#{bundler_version}). We suggest you " \ - "upgrade to the latest version of Bundler by running `gem " \ - "install bundler#{prerelease_text}`.\n" + "than the version that created the lockfile (#{bundler_version}). We suggest you to " \ + "upgrade to the version that created the lockfile by running `gem install " \ + "bundler:#{bundler_version}#{prerelease_text}`.\n" end end end |
