Reserve filename Cargo.toml.orig

This commit is contained in:
Jeremy Banks 2022-04-08 22:39:07 -04:00 committed by GitHub
parent fc5035d698
commit e4c725110b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,10 +230,10 @@ fn build_ar_list(
});
}
"Cargo.lock" => continue,
VCS_INFO_FILE => anyhow::bail!(
VCS_INFO_FILE | "Cargo.toml.orig" => anyhow::bail!(
"invalid inclusion of reserved file name \
{} in package source",
VCS_INFO_FILE
rel_str
),
_ => {
result.push(ArchiveFile {