Skip to content

Git sources cannot be overridden #3976

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
ishitatsuyuki opened this issue Apr 29, 2017 · 4 comments
Closed

Git sources cannot be overridden #3976

ishitatsuyuki opened this issue Apr 29, 2017 · 4 comments

Comments

@ishitatsuyuki
Copy link
Contributor

[dependencies]
cargo = { git = "https://github.com/rust-lang/cargo" }

[replace]
"cargo:0.20.0" = { path = "cargo" }

No, it doesn't work.

warning: package replacement is not used: https://github.com/rust-lang/crates.io-index#cargo:0.20.0
@alexcrichton
Copy link
Member

For git sources you need to specify the URL as well, does it work then?

@ishitatsuyuki
Copy link
Contributor Author

Can you clarify about the format? Simply specifying the URL as the version was rejected as invalid syntax.

@alexcrichton
Copy link
Member

The documentation for the replace section indicates keys are package id specifications which has docs and examples of package ids.

@ishitatsuyuki
Copy link
Contributor Author

This was resolved with the following syntax:

[replace]
"https://github.com/rust-lang/cargo#0.20.0" = { path = "cargo" }

Thanks for pointing me to the right direction.

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