Repository navigation
Commit dbbcf44
committed
Skip reinstalling an exact Bundler version that is already installed
When Gemfile.lock names an exact version, `gem install bundler -v X.Y.Z`
reinstalls it even if it is already there: RubyGems removes the gem directory
and extracts it again. On self-hosted runners that share a tool cache, another
job loading Bundler at that moment fails with "cannot load such file --
bundler/dsl". Checking `gem list --installed` first leaves an installed
version alone; it is the same gem either way. Version ranges still install, so
`bundler: 2` and the like keep picking up new releases.
Claude-Session: https://claude.ai/code/session_01QXQDfTwJ3WAbfys8YQKrWF1 parent 824c0e2 commit dbbcf44
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments