Skip to content

Improve error message for invalid path dependencies within git dependencies #7784

Closed

Description

Problem
I add a git dependency on "noise-rust-crypto" which is part of the "noise-rust" repository and cargo doesn't find it.

$ cargo update
    Updating git repository `https://github.com/sopium/noise-rust`
error: failed to load source for a dependency on `noise-rust-crypto`

Caused by:
  Unable to update https://github.com/sopium/noise-rust

Caused by:
  Could not find `Cargo.toml` in `/home/niklas/.cargo/git/checkouts/noise-rust-6131949caf0d2152/dad7f8b/noise`

Steps

  1. echo "noise-rust-crypto = {git = "https://github.com/sopium/noise-rust"}" >> Cargo.toml
  2. cargo update

Possible Solution(s)

Notes

Output of cargo version:

$ cargo --version
cargo 1.40.0 (bc8e4c8be 2019-11-22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.A-gitArea: anything dealing with gitA-workspacesArea: workspacesC-bugCategory: bugE-mediumExperience: Medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions