mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 05:47:45 +00:00
Use Simplified
instead of Normalized
for path prefix stripping (#2071)
## Summary This directly matches the naming of the `dunce` methods.
This commit is contained in:
parent
f315d07133
commit
ef15098288
26 changed files with 129 additions and 129 deletions
|
@ -9,7 +9,7 @@ use camino::{FromPathBufError, Utf8Path, Utf8PathBuf};
|
|||
use fs_err as fs;
|
||||
use fs_err::File;
|
||||
use tracing::info;
|
||||
use uv_fs::Normalized;
|
||||
use uv_fs::Simplified;
|
||||
|
||||
use uv_interpreter::Interpreter;
|
||||
|
||||
|
@ -181,7 +181,7 @@ pub fn create_bare_venv(
|
|||
.replace(
|
||||
"{{ VIRTUAL_ENV_DIR }}",
|
||||
// SAFETY: `unwrap` is guaranteed to succeed because `location` is an `Utf8PathBuf`.
|
||||
location.normalized().to_str().unwrap(),
|
||||
location.simplified().to_str().unwrap(),
|
||||
)
|
||||
.replace("{{ BIN_NAME }}", bin_name)
|
||||
.replace(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue