mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-16 05:20:04 +00:00
make the error message clearer when running distroless containers (#13549)
Previously you could get a confusing error message like this: ``` $ docker run ghcr.io/astral-sh/uv run python error: Could not read ELF interpreter from any of the following paths: /bin/sh, /usr/bin/env, /bin/dash, /bin/ls ``` Now the error message is better: ``` error: Failed to discover managed Python installations Caused by: Failed to determine the libc used on the current platform Caused by: Failed to find any common binaries to determine libc from: /bin/sh, /usr/bin/env, /bin/dash, /bin/ls ``` See https://github.com/astral-sh/uv/issues/8635. --------- Co-authored-by: konsti <konstin@mailbox.org> Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
72e2821d26
commit
08f2fa48ff
4 changed files with 22 additions and 7 deletions
|
@ -87,7 +87,7 @@ pub enum Error {
|
|||
AbsolutePath(PathBuf, #[source] io::Error),
|
||||
#[error(transparent)]
|
||||
NameParseError(#[from] installation::PythonInstallationKeyError),
|
||||
#[error(transparent)]
|
||||
#[error("Failed to determine the libc used on the current platform")]
|
||||
LibcDetection(#[from] LibcDetectionError),
|
||||
#[error(transparent)]
|
||||
MacOsDylib(#[from] macos_dylib::Error),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue