Stop trying to publish crates that are unpublishable

This commit is contained in:
Michael Vines 2019-07-12 21:50:50 -07:00
parent b01990d480
commit d2b21ce8d0
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,11 @@ for Cargo_toml in $Cargo_tomls; do
crate_name=$(grep -m 1 '^name = ' "$Cargo_toml" | cut -f 3 -d ' ' | tr -d \")
if grep -q "^publish = false" "$Cargo_toml"; then
echo "$crate_name is is marked as unpublishable"
continue
fi
if [[ $(is_crate_version_uploaded "$crate_name" "$expectedCrateVersion") = True ]] ; then
echo "${crate_name} version ${expectedCrateVersion} is already on crates.io"
continue

View File

@ -9,6 +9,7 @@ repository = "https://github.com/solana-labs/solana"
authors = ["Solana Maintainers <maintainers@solana.com>"]
license = "Apache-2.0"
edition = "2018"
publish = false
[features]
bpf_c = []