Merged
Conversation
When I tried to build from source, it failed with following error. Updating git repository https://github.com/azat-rust/cursive error: failed to load source for dependency cursive Caused by: Unable to update https://github.com/azat-rust/cursive?branch=chdig-25.7#2c18a81a Caused by: failed to fetch into: /home/kavi/.cargo/git/db/cursive-6ea9b78501fad33c Caused by: revision 2c18a81add64a3c4fa844ade56688905ac7361c7 not found Caused by: failed to authenticate when downloading repository: git@github.com:azat-rust/cursive * attempted ssh-agent authentication, but no usernames succeeded: git if the git CLI succeeds then net.git-fetch-with-cli may help here https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli Caused by: no authentication methods succeeded Adding `net.git-fetch-with-cli` to $HOME/.cargo/config.toml fixed the issue. Reference: https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Owner
|
Hm, interesting, by some reason it substitued the protocol for the repo, it should be Maybe you have some fancy But anyway, thanks for fixing it, I did not even knew that there is builtin library, worth to put into README, but let's make sure that there is no custom P.S. interesting, it is the first time important message from github went into spam folder |
Contributor
Author
|
you are absolutely right @azat Removing those from my .gitconfig fixed the issue :) may be we can add it as NOTE somewhere in the README FWIW :). Also ok to just close this PR without merging if you think the error is straight forward :) |
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
azat
reviewed
Nov 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When I tried to build from source, it failed with following error.
Adding
net.git-fetch-with-clito $HOME/.cargo/config.toml fixed the issue.Reference: https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
thought of adding it to README for anyone facing the same issue. Feel free to ignore if there are better way to handle this.