-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'cargo install --git' assumes 'master' branch instead of using 'HEAD' #3517
Comments
Ah seems reasonable to me! I suspect that there's some git-fu we could apply here to sort this out not in too difficult a fashion. |
Just changing the default If not, probably adding a new If this is changed for dependencies as well then the docs probably also need updating, e.g. Specifying Dependencies mentions the |
Yeah we can perhaps test out updating just the install path first and then updating the dependencies path, I fear that updating the way we interpret dependencies may be a breaking change so we might have to hold off on that. |
It seems that this bug may occur in -->$ git branch -av
develop b6a2467 in develop
* wtf cd38557 wtf master
remotes/origin/develop b6a2467 in develop and clear all caches in then I do
It would show: -->$ cargo run
Updating git repository `https://github.com/JKingdom/cargo-deps-test.git`
error: failed to load source for a dependency on `cargo-deps-test`
Caused by:
Unable to update https://github.com/JKingdom/cargo-deps-test.git
Caused by:
failed to find branch `master`
Caused by:
cannot locate local branch 'master'; class=Reference (4); code=NotFound (-3) my cargo version is -->$ cargo --version
cargo 1.33.0-nightly (2cf1f5dda 2018-12-11) |
I'm still getting bitten by the remote
Output of `rustup show`
|
@ErichDonGubler It was reverted due to some problems. This issue probably should have been reopened. A new implementation was made in #8522, but it is requiring more work to complete. It might be possible to directly support |
See also rust-lang/cargo#3517. Breakage caused by artichoke/artichoke#961.
See also rust-lang/cargo#3517. Breakage caused by artichoke/artichoke#961.
This should be fixed by #9133, which I think will be in the next nightly. |
When trying to install rustc-l10n I got an error message from
cargo
Manually checking out the repo and looking at the refs I found that it has a
HEAD
ref pointing to the branchdevelop
It seems to me that
cargo
should probably be installing from theHEAD
ref rather than assuming everyone sticks with themaster
branch convention.EDIT: Just tried specifying it as a dependency and got the same error as well, I presume if there's anywhere else
cargo
takes a git repository it likely has the same behaviour.The text was updated successfully, but these errors were encountered: