Skip to content

Commit 00d95c3

Browse files
authored
RUST-1205 Fix macro crate publishing (#1127)
1 parent 92f91cf commit 00d95c3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.evergreen/release-build-vars.sh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if [[ "${DRY_RUN:-}" == "yes" ]]; then
1818
fi
1919

2020
cat <<EOT >release-expansion.yml
21+
CARGO_REGISTRY_TOKEN: "${CARGO_REGISTRY_TOKEN}"
2122
CRATE_VERSION: "${CRATE_VERSION}"
2223
PAPERTRAIL_KEY_ID: "${PAPERTRAIL_KEY_ID}"
2324
PAPERTRAIL_SECRET_KEY: "${PAPERTRAIL_SECRET_KEY}"

.evergreen/release-danger-do-not-run-manually.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set +x
1313

1414
set -o errexit
1515

16-
if [[ -z "$CRATES_IO_TOKEN" ]]; then
17-
echo >&2 "\$CRATES_IO_TOKEN must be set to the crates.io authentication token"
16+
if [[ -z "$CARGO_REGISTRY_TOKEN" ]]; then
17+
echo >&2 "\$CARGO_REGISTRY_TOKEN must be set to the crates.io authentication token"
1818
exit 1
1919
fi
2020

@@ -32,7 +32,7 @@ if [[ "${PACKAGE_ONLY}" == "yes" ]]; then
3232
cargo package --no-verify --allow-dirty
3333
else
3434
pushd macros
35-
cargo publish --token $CRATES_IO_TOKEN ${EXTRA}
35+
cargo publish ${EXTRA}
3636
popd
37-
cargo publish --token $CRATES_IO_TOKEN ${EXTRA}
37+
cargo publish ${EXTRA}
3838
fi

macros/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "mongodb-internal-macros"
3+
description = "Internal macros for the mongodb crate"
34
version = "3.0.0-beta"
45
edition = "2021"
56
license = "Apache-2.0"

0 commit comments

Comments
 (0)