Repository navigation
Commit acd187c
committed
Install an exact Bundler version with --conservative
Reinstalling an exact version that is already installed changes nothing, but
`gem install` removes the gem directory before extracting it again. On
self-hosted runners that share a tool cache, a concurrent job then fails at
`bundle config` with "cannot load such file -- .../bundler-X.Y.Z/lib/bundler/dsl"
(#191). With `--conservative`, RubyGems returns before touching anything when
the requirement is already met, including by a default gem. Only exact
versions pass the flag, so a `~>` constraint still gets the latest matching
release rather than the Bundler the Ruby shipped with (see #48).
`--conservative` has worked this way for `gem install` since RubyGems 1.8.23.1 parent 824c0e2 commit acd187c
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments