Skip to content

Unhelpful error message when instaling from git: "invalid argument: 'port'; class=Invalid (3)" #15335

Open
@tbu-

Description

@tbu-

When trying to install from a git repository, I get the following unhelpful error:

$ cargo install --git git+https://github.com/astral-sh/uv uv
    Updating git repository `git+https://github.com/astral-sh/uv`
error: failed to fetch into: .cargo/git/db/uv-c9e40703e19509a8

Caused by:
  invalid argument: 'port'; class=Invalid (3)

The problem seems to be caused by specifying git+https://github.com/astral-sh/uv instead of https://github.com/astral-sh/uv (note the missing git+ in the second URL).

The error message is unhelpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions