Merge rust-bitcoin/rust-bitcoin#4180: Fix the release script that checks for TBD

fe685b824f Fix the release script that checks for TBD (Jamil Lambert, PhD)

Pull request description:

  `release.sh` is missing `units`.

  Add `units` to the list of crates to check.

  Reorder the crates alphabetically.

  Fix #4163

ACKs for top commit:
  tcharding:
    ACK fe685b824f
  Kixunil:
    ACK fe685b824f
  apoelstra:
    ACK fe685b824f1c63ad0e4aea74a18081d71ccd044d; successfully ran local tests

Tree-SHA512: 0b1ac9610e547f895902ce5d73aa7d2fcdcb319bded3f78e490d3288f177a79c5e2ee354e0481e128dbef0f7b134737422272a615d3bb0fef4f3bd05e5ba4c0a
This commit is contained in:
merge-script 2025-03-04 19:27:57 +00:00
commit 2a9b12b99e
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@
set -euox pipefail set -euox pipefail
main () { main () {
for crate in "internals" "hashes" "bitcoin"; do for crate in "bitcoin" "hashes" "internals" "units"; do
if release_changes $crate; then if release_changes $crate; then
echo "$crate has changes implying this is a release PR, checking if we can publish ..." echo "$crate has changes implying this is a release PR, checking if we can publish ..."
@ -35,12 +35,14 @@ release_changes() {
# We use `set -e` so this will fail the script if the dry-run fails. # We use `set -e` so this will fail the script if the dry-run fails.
publish_dry_run() { publish_dry_run() {
local crate=$1 local crate=$1
if [ "$crate" == "hashes" ]; then if [ "$crate" == "bitcoin" ]; then
cargo publish -p "bitcoin" --dry-run
elif [ "$crate" == "hashes" ]; then
cargo publish -p "bitcoin_hashes" --dry-run cargo publish -p "bitcoin_hashes" --dry-run
elif [ "$crate" == "internals" ]; then elif [ "$crate" == "internals" ]; then
cargo publish -p "bitcoin-internals" --dry-run cargo publish -p "bitcoin-internals" --dry-run
elif [ "$crate" == "bitcoin" ]; then elif [ "$crate" == "units" ]; then
cargo publish -p "bitcoin" --dry-run cargo publish -p "bitcoin-units" --dry-run
fi fi
} }