Repository navigation
Calling mise use ruby@--version overwrites a mise.toml ruby value with --version
#9975
ExpectedIf you try to run ActualAnalysisIf you try to call it with a different input, it fails as you would expect: However, if you put dashes in front of the command the behavior starts to make sense: It is passing the value directly to the underlying SuggestedA simple-ish fix would be to reject inputs that start with a hyphen Alternatively, have some post-install validation such as checking that the directory mise expects on disk was actually generated (instead of just assuming that a non-zero tool exit means it was) and exit non-zero if it's not found. WhyNot important to the bug report at all, but I found it amusing (the bug still exists regardless of why I was calling When I try a new tool, I like to alias for muscle memory, for example: I did this with mise: Unfortunately, the Ruby LSP calls |
Replies: 1 comment 1 reply
|
Thanks for the detailed report. I opened #10113 to reject leading-dash tool versions during request validation, so The PR includes a regression test that verifies the failed This comment was generated by an AI coding assistant. |
Thanks for the detailed report. I opened #10113 to reject leading-dash tool versions during request validation, so
mise use ruby@--versionfails before reachingruby-buildand does not write the invalid version tomise.toml.The PR includes a regression test that verifies the failed
mise use ...@--versioncall leaves the existing config value unchanged.This comment was generated by an AI coding assistant.