Repository navigation
fix: add three more offline fix rules - #125
Merged
Sym-jay merged 2 commits intoNov 22, 2026
Merged
Conversation
Owner
|
Thanks for picking this up so fast, nice clean rules! Three small things before merging:
I've approved the CI run. |
Review on Sym-jay#125: BSD sed lacks GNU's -i and \\r handling, so use perl which works on both Linux and macOS. Reword the explanation without CRLF jargon, and add a case where mkdir -p stays quiet. Signed-off-by: Shounak Joshi <25joshiss_1@rbunagpur.in>
Contributor
Author
|
All three addressed in
|
Owner
|
Thanks for addressing the issues. CI runs all passed. Merging. |
This was referenced Nov 23, 2026
Merged
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.
Fixes #124.
Adds three offline rules to
fix.pyand registers them inRULES:mkdirwithNo such file or directory→ suggestsmkdir -p(makes missing parents; no-op if they exist).dpkg was interruptederror → suggestssudo dpkg --configure -a && <original command>./bin/bash^M: bad interpreteron a.shscript → suggests stripping CRLF withsed -i 's/\r$//'then rerunning.Each follows the existing
(command, error) -> {"explanation", "command"} or Nonepattern. The rules suggest no data deletion and quote arguments.Added three rows to the
test_offline_fixestable: all three fail on the base (no rule matches) and pass with the change.tests/test_fix.py32/32.Two unrelated test modules (
test_macos.py,test_tour.py) fail to collect in this environment; they fail identically on the unmodified tree.