-
Notifications
You must be signed in to change notification settings - Fork 20
chore: changes in @aws-cdk/toolkit-lib
should trigger CLI release
#364
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
base: main
Are you sure you want to change the base?
Conversation
@aws-cdk/toolkit-lib
do not trigger CLI release @aws-cdk/toolkit-lib
should trigger CLI release
]; | ||
|
||
return transitiveFeaturesAndFixes(thisPkg, toolkitPackages.filter(name => name !== thisPkg)); | ||
const manifest = require(`${__dirname}/packages/${thisPkg}/package.json`); |
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 will only work after synthesis.
So if we add a new dependency we need to do
npx projen
npx projen
To pick it up. Can't we do it another way?
...Object.keys(manifest.devDependencies ?? {}), | ||
])); | ||
|
||
return transitiveFeaturesAndFixes(thisPkg, toolkitPackages.filter(name => name !== thisPkg && deps.includes(name))); |
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.
It's not really transitive this way, is it?
Now that the CLI depends on
@aws-cdk/toolkit-lib
, it should be added to the releasable commits list.Also, the
transitiveToolkitPackages
function, which is used to determine the packages we trigger releases on, did not consider whether the specific toolkit package is actually a dependency of the provided package or not.This caused incorrect releases. For example:
cli-lib-alpha
was released whentmp-toolkit-helpers
was changed, even though it does not depend on it.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license