Fix cache subcommand detection when cache directory exists - #3850
Open
zhangli091011 wants to merge 2 commits into
Open
Fix cache subcommand detection when cache directory exists#3850zhangli091011 wants to merge 2 commits into
zhangli091011 wants to merge 2 commits into
Conversation
Author
|
The failing |
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
cachesubcommand enabled when./cacheis a directorycacheas input for cat compatibilitycachedirectory in the working directoryFixes #1726.
PR #3743 previously proposed the same production fix but was closed unmerged by its author. This version uses a smaller, cross-platform regression test and follows the current changelog workflow.
Tests
cargo fmt --all -- --checkcargo test --test integration_tests cache_cargo test --test integration_tests can_print_file_named_cache -- --exactcargo check --all-targets --all-featurescargo clippy --all-targets --all-features -- -D warningsAI Assistance
This change was implemented with AI assistance. The issue state, repository policies, code, diff, and test results were reviewed by the submitter before submission.