From 88aaa3308bc9e443d828c2d1792d1264e35f60a5 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Thu, 20 Jan 2022 12:30:47 -0500 Subject: [PATCH] Sync script needs gradle clean (#1100) * Sync script needs gradle clean * Update changelogs --- CHANGELOG.next.toml | 6 ++++++ tools/smithy-rs-sync/src/main.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 72d79628e..e29b58d8d 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -10,3 +10,9 @@ # references = ["smithy-rs#920"] # meta = { "breaking" = false, "tada" = false, "bug" = false } # author = "rcoh" + +[[aws-sdk-rust]] +message = "_Internal:_ Update sync script to run gradle clean. This fixes an issue where codegen was not triggered when only properties changed." +author = "rcoh" +meta = { "breaking" = false, "tada" = false, "bug" = true } +references = ["smithy-rs#1100"] diff --git a/tools/smithy-rs-sync/src/main.rs b/tools/smithy-rs-sync/src/main.rs index a30eb8cc7..d771218c3 100644 --- a/tools/smithy-rs-sync/src/main.rs +++ b/tools/smithy-rs-sync/src/main.rs @@ -228,6 +228,7 @@ fn build_sdk(smithy_rs_path: &Path) -> Result { // The output of running these commands isn't logged anywhere unless they fail let _ = run(&["rm", "-rf", "aws/sdk/build"], smithy_rs_path).context(here!())?; + let _ = run(&[gradlew, ":aws:sdk:clean"], smithy_rs_path).context(here!())?; let _ = run( &[gradlew, "-Paws.fullsdk=true", ":aws:sdk:assemble"], smithy_rs_path,