Skip to content

Commit 79151fd

Browse files
authored
fix(cli): no change deployment prints "hotswap deployment skipped" without hotswap flag (#24602)
The "hotswap deployment skipped" message is printed when a full deployment is performed if no changes were detected. Before: ``` $ cdk deploy ✨ hotswap deployment skipped - no changes were detected (use --force to override) ✅ ApiStack (no changes) ``` With this PR: ``` $ cdk deploy ✅ ApiStack (no changes) ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent dfa09d1 commit 79151fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/api/deploy-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export async function deployStack(options: DeployStackOptions): Promise<DeploySt
275275
debug(`${deployName}: skipping deployment (use --force to override)`);
276276
// if we can skip deployment and we are performing a hotswap, let the user know
277277
// that no hotswap deployment happened
278-
if (options.hotswap) {
278+
if (options.hotswap !== HotswapMode.FULL_DEPLOYMENT) {
279279
print(`\n ${ICON} %s\n`, chalk.bold('hotswap deployment skipped - no changes were detected (use --force to override)'));
280280
}
281281
return {

0 commit comments

Comments
 (0)