Skip to content

Commit

Permalink
feat(cli): Support disabling version check
Browse files Browse the repository at this point in the history
If AWS_CDK_DISABLE_VERSION_CHECK is defined, skip checking for newer
versions.

fixes aws#10974
  • Loading branch information
christophgysin committed Oct 20, 2020
1 parent 6d04fd2 commit 4d829fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function latestVersionIfHigher(currentVersion: string, cacheFile: V
}

export async function displayVersionMessage(): Promise<void> {
if (!process.stdout.isTTY) {
if (!process.stdout.isTTY || process.env.AWS_CDK_DISABLE_VERSION_CHECK) {
return;
}

Expand Down

0 comments on commit 4d829fd

Please sign in to comment.