Skip to content

cargo does not use git and fails to download, use default which makes sense #16803

Description

@soloturn

Problem

when building cargo does not use the standard gitconfig. e.g. it does not switch to ssh and rewrites an url to ssh when in .gitconfig file there is:

    Updating git repository `https://github.com/openwallet-foundation/askar.git`
error: failed to load source for dependency `askar-storage`

https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

please use a working default instead of printing an error message. set CARGO_NET_GIT_FETCH_WITH_CLI as true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions