-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(pipelines): cdk-assets version is configurable #34802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Make it possible to configure the version of `cdk-assets` CLI used by the CDK Pipeline. This is only useful for versions of `cdk-assets` *newer*` than `3.3.1`, as older versions have wildcard ranges in their transitive dependencies and may install different versions of packages depending on what is currently available on npmjs.com. The first `cdk-assets` version after `3.3.1` will bundle its dependencies so that the install operation will be deterministic. We recommend you don't use this feature and just leave it at `latest`. The bundling of dependencies of `cdk-assets` will already remove any install failures around the release time of a new SDKv3 version, that used to plague `cdk-assets` in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This review is outdated)
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
@@ -411,6 +426,7 @@ export class CodePipeline extends PipelineBase { | |||
this.dockerCredentials = props.dockerCredentials ?? []; | |||
this.singlePublisherPerAssetType = !(props.publishAssetsInParallel ?? true); | |||
this.cliVersion = props.cliVersion ?? preferredCliVersion(); | |||
this.cdkAssetsCliVersion = props.cdkAssetsCliVersion ?? 'latest'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use a similar algorithm to cliVersion
i.e. preferredCliVersion
?
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Make it possible to configure the version of
cdk-assets
CLI used by the CDK Pipeline.This is only useful for versions of
cdk-assets
newerthan
3.3.1`, as older versions have wildcard ranges in their transitive dependencies and may install different versions of packages depending on what is currently available on npmjs.com.The first
cdk-assets
version after3.3.1
will bundle its dependencies so that the install operation will be deterministic.We recommend you don't use this feature and just leave it at
latest
. The bundling of dependencies ofcdk-assets
will already remove any install failures around the release time of a new SDKv3 version, that used to plaguecdk-assets
in the past.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license