You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug mise use -g ruby@3.3fails with a ruby-build usage error when MISE_RUBY_BUILD_OPTS are set.
To Reproduce
Run export MISE_RUBY_BUILD_OPTS="--without-libyaml-dir" (or any other flag)
Run mise use -g ruby@3.3 --verbose
Program will fail with
[DEBUG] ARGS: /Users/margaretgorguissian/.local/bin/mise use -g ruby@3.3 --verbose
[DEBUG] Config {
Config Files: [],
}
[DEBUG] Toolset (180.212µs):
[DEBUG] install_versions: ruby@3.3
[DEBUG] ToolRequestSet.build(47.271µs): ToolRequestSet:
[DEBUG] $ /Users/margaretgorguissian/Library/Caches/mise/ruby/ruby-build/bin/ruby-build --version
[DEBUG] GET https://api.github.com/repos/rbenv/ruby-build/releases/latest
[DEBUG] starting new connection: https://api.github.com/
[DEBUG] GET https://api.github.com/repos/rbenv/ruby-build/releases/latest 200 OK
running ruby-build
[DEBUG] $ ~/Library/Caches/mise/ruby/ruby-build/bin/ruby-build --without-libyaml-dir --verbose 3.3.5 /Users/margaretgorguissian/.local/share/mise/installs/ruby/3.3.5
ruby-build: invalid flag 'without-libyaml-dir'
Usage: ruby-build [-kpv] <definition> <prefix> [-- <configure-args...>]
ruby-build {--list|--definitions}
ruby-build --version
-l, --list List latest stable releases for each Ruby
--definitions List all local definitions, including outdated ones
--version Show version of ruby-build
-v, --verbose Verbose mode: forward all build output to stdout/stderr
-p, --patch Apply a patch from stdin before building
-k, --keep Do not remove source tree after installation
-4, --ipv4 Resolve names to IPv4 addresses only
-6, --ipv6 Resolve names to IPv6 addresses only
[ERROR] ~/Library/Caches/mise/ruby/ruby-build/bin/ruby-build failed
Error:
0: ~/Library/Caches/mise/ruby/ruby-build/bin/ruby-build exited with non-zero status: exit code 1
Expected behavior
I expect the ruby v3.3.5 installation to succeed, with the provided options respected.
As articulated in the usage message when running ruby-build, the definition and the prefix should come before any configuration arguments (ruby-build [-kpv] <definition> <prefix> [-- <configure-args...>]). However, the definition (version) and prefix are pushed onto the end of the args array, rather than being prepended. I can open a PR to fix this, but wanted to file an issue first (as recommended here) in case I am missing some context here. Thank you!
The text was updated successfully, but these errors were encountered:
Describe the bug
mise use -g ruby@3.3
fails with aruby-build
usage error whenMISE_RUBY_BUILD_OPTS
are set.To Reproduce
export MISE_RUBY_BUILD_OPTS="--without-libyaml-dir"
(or any other flag)mise use -g ruby@3.3 --verbose
Program will fail with
Expected behavior
I expect the ruby v3.3.5 installation to succeed, with the provided options respected.
mise doctor
outputAdditional context
My naive suspicion is that the arguments are not being added to the
args
array correctly here:mise/src/plugins/core/ruby.rs
Line 277 in a92e7bc
As articulated in the usage message when running
ruby-build
, the definition and the prefix should come before any configuration arguments (ruby-build [-kpv] <definition> <prefix> [-- <configure-args...>]
). However, the definition (version) and prefix are pushed onto the end of the args array, rather than being prepended. I can open a PR to fix this, but wanted to file an issue first (as recommended here) in case I am missing some context here. Thank you!The text was updated successfully, but these errors were encountered: