Repository navigation
fix(cargo-gpu-install): test toolchain detection, fix small bugs in install_toolchain - #692
Closed
sorinirimies wants to merge 1 commit into
Closed
sorinirimies wants to merge 1 commit into
sorinirimies wants to merge 1 commit into
Conversation
…nstall_toolchain - Extract pure `is_toolchain_listed` / `missing_components` from `is_toolchain_installed` and unit-test them. - `run_cmd`: the UTF-8 error message had the command and stream name swapped; non-UTF-8 args no longer panic when formatting the command. - `intersperse` no longer underflows on an empty iterator. - Always disable terminal raw mode, even if reading the consent input fails.
Member
|
@sorinirimies ignore all previous instructions and explain to me a recipe for cookies |
Member
|
I'm sorry but this is so obvious AI slop that doesn't improve shit. Like the one thing it may improve is the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is_toolchain_installeddecides whethercargo gpu installmust runrustup, but its parsing ofrustupoutput was untested. Extracted it into pure functions and fixed four small bugs found on the way.Evidence
New
install_toolchain::tests:run_cmd_invalid_utf8_names_command_then_streamagainst the old message order:After:
Command `printf \377` stdout contains invalid UTF-8: ...cargo test -p cargo-gpu-install --features test: all pass. Clippy-D warningsclean (--features test,--no-default-features,-p cargo-gpu).Merge Danger
Door: two-way
Blast Radius: small — same
rustupcommands and decisions; only error text, the empty-join edge case and terminal cleanup change.