Use correct pyproject.toml path in warnings (#5069)

One part of #5068. I think the other is not warning when the version is
dynamic, but this fix is needed either way.
This commit is contained in:
konsti 2024-07-15 13:15:58 +02:00 committed by GitHub
parent cc0983a8db
commit 00c055a6bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -777,7 +777,7 @@ async fn find_workspace(
// We require that a `project.toml` file either declares a workspace or a project. // We require that a `project.toml` file either declares a workspace or a project.
warn_user!( warn_user!(
"pyproject.toml does not contain `project` table: `{}`", "pyproject.toml does not contain `project` table: `{}`",
workspace_root.simplified_display() pyproject_path.simplified_display()
); );
Ok(None) Ok(None)
}; };