Repository navigation
fix(driver): repair the botched match conversion in run_direct - #1760
Merged
Merged
Conversation
#1751 (rm wire) converted run_direct�s if/else-if chain into a match but left residue: a after the tail arm and a stray second opening before the tty arm. Result: driver/main.rs is invalid Rust — one unclosed — and every main build leg has been failing since (#1750/#1751 landed). The repaired form is a single match: tail, rm (body re-indented to arm depth), tty/test/[/nohup/touch arms direct, dispatch fallback as the arm. Byte-identical command semantics; the structure is what #1751 intended. Verified: cargo build -p winuxcmd-driver clean; winux-cmds lib 975/0; scripts/i18n_rust.py tokenizes the repaired file and the rust2/crates extraction pass runs (401 messages) — the i18n-drift job�s crash (unclosed Rust source delimiter in main.rs) is the same breakage surfacing through the extractor.
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.
Breakage introduced by #1751 (rm wire): the if/else-if chain was half-converted to a match —
} else if name == "rm" {residue after the tail arm plus a stray secondmatch winux_cmds::dispatchopening. driver/main.rs has been invalid Rust (one unclosed{) and every main build leg has been red since; the i18n-drift job crashed on the same file (extractor: unclosed Rust source delimiter).Repaired to the single-match form #1751 intended (tail/rm/tty/test/[/nohup/touch arms + dispatch fallback). Command semantics byte-identical.
Verified: driver builds clean; winux-cmds lib 975/0; extractor tokenizes the file and the rust2/crates extraction pass runs (401 messages).