Repository navigation
Conversation
- command.rs: drop needless `return` in the cfg(windows) block of executable_in, which failed clippy -D warnings on Windows. - ci_steps.rs: add StepContext::root_path to join root-relative paths with '/' instead of Path::join, so --explain output and the explain_all_available_ci_commands snapshot match on Windows.
- ci_steps.rs: link [`Path::join`] in the root_path doc comment instead of naming it in plain text, per the review guide's intra-doc link convention.
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.
Which issue does this PR close?
Rationale for this change
On Windows,
cargo clippy -p datafusion-xtask -- -D warningsandcargo test -p datafusion-xtaskboth fail, so the CI lint and test commands can't be run locally there. Details are in the issue.What changes are included in this PR?
xtask/src/command.rs: remove a needlessreturnin the#[cfg(windows)]block ofexecutable_in.xtask/src/ci_steps.rs: add aStepContext::root_pathhelper that appends/-separated paths to the workspace root with/instead ofPath::join, and use it for the five root-relative paths.--explainoutput is unchanged on Linux and macOS, and on Windows it now matches the snapshots.What is the testing strategy for this PR?
Covered by the existing
ci_steps::tests::explain_all_available_ci_commandssnapshot test, which now passes on Windows. Tested locally on Windows (x86_64-pc-windows-msvc):cargo test -p datafusion-xtask(10/10),cargo clippy --all-targets -p datafusion-xtask -- -D warnings,cargo fmt --all -- --check, andcargo xtask ci step test <step> --explainfor the affected steps, which resolve to real paths. CI on Linux covers the unchanged behavior there.Are there any user-facing changes?
No. This only changes internal dev tooling (
xtask).