Commit c710f89
committed
Apply lower bound
When the composed `.ruby-lsp/Gemfile` is generated for users who don't
have `ruby-lsp` in their own Gemfile, apply a `>= 0.18.0` lower bound.
Without this constraint, Bundler could resolve to very old versions
that cause errors. Reasons for choosing 0.18.0:
- Fixes resolution to versions like 0.11.2 which cause `NameError:
uninitialized constant RubyLsp::RuboCop::Cop`
- First version with stable Prism 1.0 dependency (`~> 1.0`) — earlier
versions used narrow pre-1.0 pins that caused dependency resolution
issues
- Includes `rbs >= 3` dependency (added in v0.17.3) needed for core
class indexing
- Not overly restrictive — v0.18.0 is from September 2024, leaving
~18 months of versions availableruby-lsp version constraint in composed bundle1 parent b822ef8 commit c710f89
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments