Skip to content

uv tool run could be more helpful when a package name and tool don't match #8319

@akx

Description

@akx

macOS arm64, uv 0.4.24

$ uv tool run cyclonedx-bom
The executable `cyclonedx-bom` was not found.
warning: An executable named `cyclonedx-bom` is not provided by package `cyclonedx-bom`.
The following executables are provided by `cyclonedx-bom`:
- cyclonedx-py

Suggestions:

  • This help text could tell me what to do to make this work (the magic spell uv tool run --from cyclonedx-bom cyclonedx-py).

    • uv tool run cyclonedx-py --from cyclonedx-bom already has this sort of warning in place: warning: An executable named cyclonedx-pyis not provided by packagecyclonedx-pybut is available via the dependencycyclonedx-bom. Consider using uv tool run --from cyclonedx-bom cyclonedx-py instead.
  • Alternatively, this could Do What I Mean and at least prompt me if I want to run the similarly-named single option, if not run it directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesMessaging when something goes wronggood first issueGood for newcomershelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions