mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Fix message when there are no buildable packages (#11722)
<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary I noticed that when running "uv build --all-packages" in an empty workspace with no buildable packages, it reports that there are buildable packages. Which I believe to be an error in the message. This patch fixes the typo. I did not find any relevant issues. ## Test Plan I've verified, to the best of my ability, that this did not introduce any additional errors in related existing tests. Considering the nature of the change I believe it's sufficient.
This commit is contained in:
parent
4611690745
commit
2ea1df1a1f
2 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ async fn build_impl(
|
|||
let member = workspace.packages().values().next().unwrap();
|
||||
let name = &member.project().name;
|
||||
let pyproject_toml = member.root().join("pyproject.toml");
|
||||
return Err(anyhow::anyhow!("Workspace does contain any buildable packages. For example, to build `{}` with `{}`, add a `{}` to `{}`:\n```toml\n[build-system]\nrequires = [\"setuptools\"]\nbuild-backend = \"setuptools.build_meta\"\n```", name.cyan(), "setuptools".cyan(), "build-system".green(), pyproject_toml.user_display().cyan()));
|
||||
return Err(anyhow::anyhow!("Workspace does not contain any buildable packages. For example, to build `{}` with `{}`, add a `{}` to `{}`:\n```toml\n[build-system]\nrequires = [\"setuptools\"]\nbuild-backend = \"setuptools.build_meta\"\n```", name.cyan(), "setuptools".cyan(), "build-system".green(), pyproject_toml.user_display().cyan()));
|
||||
}
|
||||
|
||||
packages
|
||||
|
|
|
@ -1411,7 +1411,7 @@ fn build_non_package() -> Result<()> {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Workspace does contain any buildable packages. For example, to build `member` with `setuptools`, add a `build-system` to `packages/member/pyproject.toml`:
|
||||
error: Workspace does not contain any buildable packages. For example, to build `member` with `setuptools`, add a `build-system` to `packages/member/pyproject.toml`:
|
||||
```toml
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue