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:
Charlie Marsh 2025-01-07 13:17:42 -05:00 committed by GitHub
parent 2ae0ed3b35
commit 1ee17afd79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,7 +119,7 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
Some(FilesystemOptions::from_file(config_file)?)
} else if deprecated_isolated || cli.top_level.no_config {
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.
FilesystemOptions::user()?.combine(FilesystemOptions::system()?)
} else if let Ok(workspace) =