Hello,
I have an issue with introducing a custom registry at our company.
It's essentially described by this test:
|
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. 🙏
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
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. 🙏