mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-31 20:09:09 +00:00
Error when tool.uv.sources is set in system-level configuration file (#12757)
## Summary I think the lack of enforcement here is an oversight. We _do_ already enforce this for user-level configuration files (contrary to the issue -- at least, in my testing and from reading the code). Closes https://github.com/astral-sh/uv/issues/12753.
This commit is contained in:
parent
17a2e423ec
commit
3ece75fc12
1 changed files with 4 additions and 1 deletions
|
|
@ -64,8 +64,11 @@ impl FilesystemOptions {
|
|||
let Some(file) = system_config_file() else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
||||
tracing::debug!("Found system configuration in: `{}`", file.display());
|
||||
Ok(Some(Self(read_file(&file)?)))
|
||||
let options = read_file(&file)?;
|
||||
validate_uv_toml(&file, &options)?;
|
||||
Ok(Some(Self(options)))
|
||||
}
|
||||
|
||||
/// Find the [`FilesystemOptions`] for the given path.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue