diff --git a/tools/ci-build/Dockerfile b/tools/ci-build/Dockerfile index 54029ccd6..49ffb8e14 100644 --- a/tools/ci-build/Dockerfile +++ b/tools/ci-build/Dockerfile @@ -88,6 +88,7 @@ RUN set -eux; \ cargo install --locked --path tools/ci-build/publisher; \ cargo install --locked --path tools/ci-build/runtime-versioner; \ cargo install --locked --path tools/ci-build/sdk-lints; \ + cargo install --locked --path tools/ci-build/sdk-lockfiles; \ cargo install --locked --path tools/ci-build/sdk-versioner; \ chmod g+rw -R /opt/cargo/registry diff --git a/tools/ci-scripts/generate-smithy-rs-release b/tools/ci-scripts/generate-smithy-rs-release index 2cb031306..5a5f8ebc2 100755 --- a/tools/ci-scripts/generate-smithy-rs-release +++ b/tools/ci-scripts/generate-smithy-rs-release @@ -31,6 +31,19 @@ git diff --staged --quiet || \ -c "user.email=aws-sdk-rust-primary@amazon.com" \ commit \ -am "Update changelog" + +echo "Synchronizing the SDK lockfile with runtime lockfiles and with crate dependencies specified in CargoDependency.kt..." +./gradlew aws:sdk:syncAwsSdkLockfile +# Verify that crate dependencies in runtime lockfiles are covered by the updated SDK lockfile +sdk-lockfiles audit +# Commit the updated SDK lockfile +git add aws/sdk/Cargo.lock +git diff --staged --quiet || \ + git -c 'user.name=AWS SDK Rust Bot' \ + -c 'user.email=aws-sdk-rust-primary@amazon.com' \ + commit aws/sdk/Cargo.lock \ + -m "Synchronize the SDK lockfile" + # Generate the crates to publish ./gradlew rust-runtime:assemble popd