|
13 | 13 | # |
14 | 14 | # Each cell must resolve against its own Ruby (gemspecs gate on |
15 | 15 | # required_ruby_version), so every cell runs under a matching Ruby provided by |
16 | | -# mise (https://mise.jdx.dev). The required Rubies are declared in .mise.toml; |
17 | | -# install them once with `mise install`. This script resolves against those |
18 | | -# already-installed Rubies and aborts if any are missing. |
| 16 | +# mise (https://mise.jdx.dev). The required Rubies are declared in |
| 17 | +# .mise.ci.toml; install them once with `mise --env ci install`. This |
| 18 | +# script resolves against those already-installed Rubies and aborts if any are |
| 19 | +# missing. |
19 | 20 | # |
20 | 21 | # bin/relock # refresh every cell |
21 | 22 | # bin/relock --gem sentry-ruby # one gem |
@@ -162,15 +163,15 @@ RESOLVE = <<~SH |
162 | 163 | SH |
163 | 164 |
|
164 | 165 | # Abort (don't auto-install) if any cell's Ruby is missing — the Rubies are |
165 | | -# declared in .mise.toml and provisioned once via `mise install`. |
| 166 | +# declared in .mise.ci.toml and provisioned once via `mise --env ci install`. |
166 | 167 | def ensure_installed(cells) |
167 | 168 | missing = cells.map(&:ruby).uniq.reject do |spec| |
168 | 169 | system(mise_bin, "where", "ruby@#{spec}", out: File::NULL, err: File::NULL) |
169 | 170 | end |
170 | 171 | return if missing.empty? |
171 | 172 |
|
172 | 173 | warn "Ruby not installed: #{missing.map { |s| "ruby@#{s}" }.join(', ')}." |
173 | | - abort "Run `mise install` first." |
| 174 | + abort "Run `mise --env ci install` first." |
174 | 175 | end |
175 | 176 |
|
176 | 177 | def cell_env(cell, force: false) |
@@ -236,7 +237,7 @@ if opts[:list] |
236 | 237 | exit 0 |
237 | 238 | end |
238 | 239 |
|
239 | | -# Resolve against already-installed Rubies (declared in .mise.toml) — never |
| 240 | +# Resolve against already-installed Rubies (declared in .mise.ci.toml) — never |
240 | 241 | # auto-installs. |
241 | 242 | ensure_installed(cells) |
242 | 243 |
|
|
0 commit comments