mirror of https://github.com/astral-sh/uv
Avoid enforcing project-level required version for `uv self` (#10374)
## Summary Closes https://github.com/astral-sh/uv/issues/10355.
This commit is contained in:
parent
2ae0ed3b35
commit
1ee17afd79
|
|
@ -119,7 +119,7 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
|
||||||
Some(FilesystemOptions::from_file(config_file)?)
|
Some(FilesystemOptions::from_file(config_file)?)
|
||||||
} else if deprecated_isolated || cli.top_level.no_config {
|
} else if deprecated_isolated || cli.top_level.no_config {
|
||||||
None
|
None
|
||||||
} else if matches!(&*cli.command, Commands::Tool(_)) {
|
} else if matches!(&*cli.command, Commands::Tool(_) | Commands::Self_(_)) {
|
||||||
// For commands that operate at the user-level, ignore local configuration.
|
// For commands that operate at the user-level, ignore local configuration.
|
||||||
FilesystemOptions::user()?.combine(FilesystemOptions::system()?)
|
FilesystemOptions::user()?.combine(FilesystemOptions::system()?)
|
||||||
} else if let Ok(workspace) =
|
} else if let Ok(workspace) =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue