Repository navigation
Conversation
warn_user_with_chain! for structured warnings
zanieb
reviewed
Sep 1, 2026
| warning: Ignoring invalid `SSL_CLIENT_CERT` | ||
| Caused by: builder error | ||
| Caused by: unexpected error: private key or certificate not found | ||
| × No solution found when resolving dependencies: |
Member
There was a problem hiding this comment.
Good reminder we should remove miette, this rendering is so confusing
zaniebot
force-pushed
the
zb/warn-user-with-chain
branch
from
September 9, 2026 18:13
ed0c7e5 to
813d014
Compare
zaniebot
force-pushed
the
zb/warn-user-with-chain
branch
from
September 9, 2026 18:20
813d014 to
1352781
Compare
zanieb
marked this pull request as ready for review
September 9, 2026 18:32
|
Promoted to #21565. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several recoverable warnings print only the outer error, hiding TOML diagnostics, interpreter query failures, TLS identity errors, and native keyring failure details. The managed-Python download fallback also bypasses warning suppression and still prints with
--quiet.Add
warn_user_with_chain!andwarn_user_once_with_chain!around the existing chain renderer, with optional hints and lazy argument evaluation. Use them for Python discovery and pinning, client certificates, project and tool lock validation, and native keyring fallback. The once-only variant deduplicates the complete rendered chain and hints so distinct causes remain visible. The managed-Python fallback now respects warning suppression without changing fatal diagnostics.Follow-up to the review discussion in astral-sh/uv#21416. The API supports attaching script-specific context without flattening the error; workspace-list adoption remains separate.