mirror of https://github.com/astral-sh/uv
Attempt at fixing Windows test
This commit is contained in:
parent
75bf8a48a3
commit
773a08330a
|
|
@ -521,6 +521,7 @@ fn format_json() -> Result<()> {
|
|||
let replace_whitespace = " ".repeat(57);
|
||||
|
||||
let search_workspace = workspace_dir.as_str().strip_prefix(prefix).unwrap();
|
||||
let search_workspace_windows = search_workspace.replace("/", "\\/");
|
||||
let replace_workspace = "[WORKSPACE_DIR]/";
|
||||
|
||||
let filters = INSTA_FILTERS
|
||||
|
|
@ -528,6 +529,7 @@ fn format_json() -> Result<()> {
|
|||
.copied()
|
||||
.chain(vec![
|
||||
(search_workspace, replace_workspace),
|
||||
(search_workspace_windows.as_str(), replace_workspace),
|
||||
(find_divider.as_str(), replace_divider.as_str()),
|
||||
(find_header.as_str(), replace_header.as_str()),
|
||||
(find_whitespace.as_str(), replace_whitespace.as_str()),
|
||||
|
|
|
|||
Loading…
Reference in New Issue