Skip to content

Instantly share code, notes, and snippets.

@wagenet
Last active April 10, 2018 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wagenet/7e59c77311e298ca6e974ba7cfee1708 to your computer and use it in GitHub Desktop.
Save wagenet/7e59c77311e298ca6e974ba7cfee1708 to your computer and use it in GitHub Desktop.
Cargo Git Dependency Error
my-dep = { git = "https://abc123:@github.com/myuser/my-dep", tag = "v1.0.0" }
Updating git repository `https://abc123@github.com/myuser/my-dep`
error: failed to load source for a dependency on `my-dep`
Caused by:
Unable to update "https://abc123@github.com/myuser/my-dep?tag=v1.0.0#622b9fa3
Caused by:
failed to fetch into /Users/peterwagenet/.cargo/git/db/my-dep-aea0fb97974ff139
Caused by:
failed to authenticate when downloading repository
attempted to find username/password via git's `credential.helper` support, but failed
Caused by:
failed to acquire username/password from local configuration
DEBUG 2018-04-10T17:35:02Z: cargo::core::registry: load/missing https://abc123@github.com/myuser/my-dep?tag=v1.0.0#622b9fa3
DEBUG 2018-04-10T17:35:02Z: cargo::sources::config: loading: https://abc123@github.com/myuser/my-dep?tag=v1.0.0#622b9fa3
TRACE 2018-04-10T17:35:02Z: cargo::core::source::source_id: loading SourceId; https://abc123@github.com/myuser/my-dep?tag=v1.0.0#622b9fa3
Updating git repository `https://abc123@github.com/myuser/my-dep`
TRACE 2018-04-10T17:35:02Z: cargo::sources::git::source: updating git source `GitRemote { url: "https://abc123@github.com/myuser/my-dep" }`
DEBUG 2018-04-10T17:35:02Z: cargo::sources::git::utils: skipping gc as there's only 0 pack files
DEBUG 2018-04-10T17:35:02Z: cargo::sources::git::utils: doing a fetch for https://abc123@github.com/myuser/my-dep
DEBUG 2018-04-10T17:35:02Z: cargo::sources::git::utils: initiating fetch of refs/heads/*:refs/heads/* from https://abc123@github.com/myuser/my-dep
TRACE 2018-04-10T17:35:03Z: git2::cred: credential helper stderr ---
TRACE 2018-04-10T17:35:03Z: git2::cred: ignoring output line:
DEBUG 2018-04-10T17:35:03Z: cargo::sources::git::utils: fetch failed: failed to acquire username/password from local configuration
DEBUG 2018-04-10T17:35:03Z: cargo: exit_with_error; err=CliError { error: Some(Error { code: -1, klass: -1, message: "failed to acquire username/password from local configuration" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment