Commit 537e1bf
fix(rust): handle rustup check exit code 100 as non-error (#8832)
## Summary
Fixes the issue where `mise outdated` fails when rust toolchain updates
are
available.
## Problem
`rustup check` returns exit code 100 when toolchain updates are
available, which
is normal behavior and not an error. Previously, mise treated this as a
failure,
causing `mise outdated` to report:
Error getting outdated info for core:rust@stable: command ["rustup",
"check"]
exited with code 100
## Solution
Changed the `outdated_info` method in `src/plugins/core/rust.rs` to use
`.unchecked().run()` instead of `.read()`, allowing mise to manually
handle the
exit code and parse the output correctly even when rustup returns 100.
## Testing
- Built successfully with `cargo build --release`
- Verified with `cargo check`
EOF
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>1 parent 3774ac3 commit 537e1bf
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
226 | 238 | | |
227 | 239 | | |
228 | 240 | | |
| |||
0 commit comments