Repository navigation
Conversation
|
@chirizxc Could you please use our PR template? Thanks. |
done |
woodruffw
left a comment
There was a problem hiding this comment.
Thanks for the PR @chirizxc, but I'm not sure this is the approach we want -- post-hoc transformation of paths into a cross-platform normal form is pretty brittle. I need to look more at why this changed with 1.26 and ensure that we propagate paths in the appropriate native form (except where required by formats like SARIF).
But it didn't change in version 1.26; it seems this behavior has always been there |
|
Oh, I misread the logs in #2146, sorry. I still think we want to preserve the native path format here, but I need to think about it more. |
|
Maybe something the following would be acceptable? fn native_path(path: &Utf8Path) -> Utf8PathBuf {
#[cfg(windows)]
{
path.components().collect()
}
#[cfg(not(windows))]
{
path.to_path_buf()
}
} |
Pre-submission checks
Please check these boxes:
Mandatory: This PR corresponds to an issue (if not, please create
one first).
Having read the AI policy, I hereby disclose the use of an LLM or other
AI coding assistant in the creation of this PR. PRs will not be rejected
for using AI tools, but will be rejected for undisclosed use or
use that violates the policy.
If a checkbox is not applicable, you can leave it unchecked.
Summary
Test Plan
Added test

test_input_key_windows_path_normalizationand run PR versionzizmorlocally: