mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Validate uploaded Cargo.toml contents.
This commit is contained in:
parent
d709c10d35
commit
e4345b2e8e
@ -1217,7 +1217,7 @@ fn publish_dev_dep_no_version() {
|
|||||||
)
|
)
|
||||||
.run();
|
.run();
|
||||||
|
|
||||||
publish::validate_upload(
|
publish::validate_upload_with_contents(
|
||||||
r#"
|
r#"
|
||||||
{
|
{
|
||||||
"authors": [],
|
"authors": [],
|
||||||
@ -1241,5 +1241,21 @@ fn publish_dev_dep_no_version() {
|
|||||||
"#,
|
"#,
|
||||||
"foo-0.1.0.crate",
|
"foo-0.1.0.crate",
|
||||||
&["Cargo.toml", "Cargo.toml.orig", "src/lib.rs"],
|
&["Cargo.toml", "Cargo.toml.orig", "src/lib.rs"],
|
||||||
|
&[(
|
||||||
|
"Cargo.toml",
|
||||||
|
r#"[..]
|
||||||
|
[package]
|
||||||
|
name = "foo"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = []
|
||||||
|
description = "foo"
|
||||||
|
homepage = "foo"
|
||||||
|
documentation = "foo"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "foo"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
"#,
|
||||||
|
)],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user