mirror of
https://github.com/rbenv/ruby-build.git
synced 2026-05-14 16:36:53 -04:00
`resolve_version` strips the leading `ruby-` from its argument and then only looks for the stripped form in the definitions directory. For canonical definitions whose filename retains the `ruby-` prefix (currently `ruby-dev`) the exact-match step searches for `dev`, which does not exist, and the grep fallback's `^dev[-.]` anchor also misses the `ruby-dev` line in the definitions list. Result: `ruby-build ruby-dev` reports "definition not found" even though the file is shipped. Try the original (unstripped) argument first in the exact-match loop, then fall back to the stripped form. Numeric-version inputs (`ruby-3.4.9`, `3.4`, `ruby-3.4`) and other implementations (`mruby-dev`, `jruby-dev`) are unaffected because their existing code paths still match. Regression introduced in #2610. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| stubs | ||
| tmp | ||
| arguments.bats | ||
| build.bats | ||
| cache.bats | ||
| checksum.bats | ||
| compiler.bats | ||
| definitions.bats | ||
| fetch.bats | ||
| hooks.bats | ||
| installer.bats | ||
| mirror.bats | ||
| output.bats | ||
| rbenv.bats | ||
| test_helper.bash | ||
| version.bats | ||