Skip to content

cargo install --git requires manual version specification for prereleases #5627

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

Closed
jrobsonchase opened this issue Jun 11, 2018 · 1 comment
Closed

Comments

@jrobsonchase
Copy link

jrobsonchase commented Jun 11, 2018

It appears that cargo is unable to locate a crate from a git repository if it has a version such as 0.2.7-alpha.0, as sccache currently does.

jchase@atlas sccache $ cargo install --git https://github.com/mozilla/sccache sccache
    Updating git repository `https://github.com/mozilla/sccache`
error: could not find `sccache` in https://github.com/mozilla/sccache    

Manually specifying the version allows it to actually find/build/install the crate though:

jchase@atlas sccache $ cargo install --git https://github.com/mozilla/sccache --force --version 0.2.7-alpha.0 sccache
    Updating git repository `https://github.com/mozilla/sccache`
  Installing sccache v0.2.7-alpha.0 (https://github.com/mozilla/sccache#bbff69f2)
...

My cargo version:

jchase@atlas cargo $ cargo --version
cargo 1.28.0-nightly (e2348c2db 2018-06-07)
@matklad
Copy link
Member

matklad commented Jun 11, 2018

Should be fixed by #5616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants