-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: update CloudFormation spec to 10.5.0 #6195
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
CHANGELOG.md
is missing here?
packages/decdk/package.json
Outdated
@@ -165,7 +165,8 @@ | |||
"jsii-reflect": "^0.22.0", | |||
"jsonschema": "^1.2.5", | |||
"yaml": "1.7.2", | |||
"yargs": "^15.1.0" | |||
"yargs": "^15.1.0", | |||
"@aws-cdk/aws-appconfig": "1.23.0" |
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.
Looks like the dependencies listed here are lexicographically sorted. Let's maintain that.
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.
I wonder why it's not sorted, I added this in #5329:
aws-cdk/packages/@aws-cdk/cfnspec/build-tools/create-missing-libraries.ts
Lines 290 to 301 in 491e2d9
// update decdk | |
const decdkPkgJsonPath = path.join(require.resolve('decdk'), '..', '..', 'package.json'); | |
const decdkPkg = JSON.parse(await fs.readFile(decdkPkgJsonPath, 'utf8')); | |
const unorderedDeps = { | |
...decdkPkg.dependencies, | |
[packageName]: version | |
}; | |
decdkPkg.dependencies = {}; | |
Object.keys(unorderedDeps).sort().forEach(k => { | |
decdkPkg.dependencies[k] = unorderedDeps[k]; | |
}); | |
await fs.writeFile(decdkPkgJsonPath, JSON.stringify(decdkPkg, null, 2) + '\n'); |
@@ -156,7 +156,8 @@ | |||
"@aws-cdk/custom-resources": "1.23.0", | |||
"@aws-cdk/cx-api": "1.23.0", | |||
"@aws-cdk/region-info": "1.23.0", | |||
"@types/node": "^10.17.14" | |||
"@types/node": "^10.17.14", | |||
"@aws-cdk/aws-appconfig": "1.23.0" |
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.
Same here.
// tslint:disable-next-line:no-console | ||
console.error(JSON.stringify(update, undefined, 2)); |
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.
Left behind from your local debugging?
update[added] = {}; | ||
for (const subKey of Object.keys(data)) { | ||
update[added][`${subKey}__added`] = data[subKey]; | ||
/** |
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.
Over time, we've built up a lot of logic here in spec-diff.ts but it lacks unit tests. We should consider an item in the future to refactor and tests to it.
Not needed as part of this change.
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.
Opened an issue - #6198
231425a
to
12c84be
Compare
12c84be
to
2fcd837
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license