mirror of https://github.com/astral-sh/uv
Fix reference to `pyproject.toml` path in workspace discovery (#3083)
This is why we write tests 😂
This commit is contained in:
parent
b3f98d5e05
commit
f9c4ca3473
|
|
@ -59,7 +59,7 @@ fn read_options(dir: &Path) -> Result<Option<Options>, WorkspaceError> {
|
|||
}
|
||||
|
||||
// Read a `pyproject.toml` file in the current directory.
|
||||
let path = path.join("pyproject.toml");
|
||||
let path = dir.join("pyproject.toml");
|
||||
match fs_err::read_to_string(&path) {
|
||||
Ok(content) => {
|
||||
// Parse, but skip any `pyproject.toml` that doesn't have a `[tool.uv]` section.
|
||||
|
|
|
|||
Loading…
Reference in New Issue