-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rich diagnostic formatting for early build failures (#9041)
## Summary This addresses cases like URL distributions, which are built before we get to the resolver.
- Loading branch information
1 parent
052b4e7
commit a147ed0
Showing
11 changed files
with
232 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1871,12 +1871,12 @@ fn compile_git_mismatched_name() -> Result<()> { | |
uv_snapshot!(context.filters(), context.pip_compile() | ||
.arg("requirements.in"), @r###" | ||
success: false | ||
exit_code: 2 | ||
exit_code: 1 | ||
----- stdout ----- | ||
----- stderr ----- | ||
error: Failed to download and build `dask @ git+https://github.com/pallets/[email protected]` | ||
Caused by: Package metadata name `flask` does not match given name `dask` | ||
× Failed to download and build `dask @ git+https://github.com/pallets/[email protected]` | ||
╰─▶ Package metadata name `flask` does not match given name `dask` | ||
"### | ||
); | ||
|
||
|
@@ -12017,18 +12017,17 @@ fn git_source_missing_tag() -> Result<()> { | |
uv_snapshot!(filters, context.pip_compile() | ||
.arg("pyproject.toml"), @r###" | ||
success: false | ||
exit_code: 2 | ||
exit_code: 1 | ||
----- stdout ----- | ||
----- stderr ----- | ||
error: Failed to download and build `uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@missing` | ||
Caused by: Git operation failed | ||
Caused by: failed to clone into: [CACHE_DIR]/git-v0/db/8dab139913c4b566 | ||
Caused by: failed to fetch tag `missing` | ||
Caused by: process didn't exit successfully: `git fetch --force --update-head-ok 'https://github.com/astral-test/uv-public-pypackage' '+refs/tags/missing:refs/remotes/origin/tags/missing'` (exit status: 128) | ||
--- stderr | ||
fatal: couldn't find remote ref refs/tags/missing | ||
× Failed to download and build `uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@missing` | ||
├─▶ Git operation failed | ||
├─▶ failed to clone into: [CACHE_DIR]/git-v0/db/8dab139913c4b566 | ||
├─▶ failed to fetch tag `missing` | ||
╰─▶ process didn't exit successfully: `git fetch --force --update-head-ok 'https://github.com/astral-test/uv-public-pypackage' '+refs/tags/missing:refs/remotes/origin/tags/missing'` (exit status: 128) | ||
--- stderr | ||
fatal: couldn't find remote ref refs/tags/missing | ||
"###); | ||
|
||
Ok(()) | ||
|
Oops, something went wrong.