-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindA-gitArea: anything dealing with gitArea: anything dealing with gitA-registriesArea: registriesArea: registriesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Hello,
I have an issue with introducing a custom registry at our company.
It's essentially described by this test:
cargo/tests/testsuite/alt_registry.rs
Lines 220 to 247 in 6b8e192
| fn registry_incompatible_with_git() { | |
| registry::alt_init(); | |
| let p = project() | |
| .file( | |
| "Cargo.toml", | |
| r#" | |
| [project] | |
| name = "foo" | |
| version = "0.0.1" | |
| authors = [] | |
| [dependencies.bar] | |
| git = "" | |
| registry = "alternative" | |
| "#, | |
| ) | |
| .file("src/main.rs", "fn main() {}") | |
| .build(); | |
| p.cargo("build") | |
| .with_status(101) | |
| .with_stderr_contains( | |
| " dependency (bar) specification is ambiguous. \ | |
| Only one of `git` or `registry` is allowed.", | |
| ) | |
| .run(); | |
| } |
We need to be able to specify both, I don't see why it should be any different from git + crates.io registry.
Why is this?
If possible, what can I do implement this ASAP?
Thanks a lot in advance for any information. 🙏
Iron-E, luciusmagn and cyril-marpaud
Metadata
Metadata
Assignees
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindA-gitArea: anything dealing with gitArea: anything dealing with gitA-registriesArea: registriesArea: registriesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review