-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Toolkit: diff shows version bump even if nothing else changed #465
Labels
package/tools
Related to AWS CDK Tools or CLI
Comments
A possible middle-ground would be to ignore the |
Yes, I was thinking something like that as well. |
Sounds good ( |
eladb
pushed a commit
that referenced
this issue
Nov 15, 2018
`DifferenceCollection#applyFilter` can be used to delete any changes that do not pass the predicate from the collection. Changed `DifferenceCollection#count` to do a lazy calculation since now `changes` is mutable. The toolkit switch `cdk diff --strict` disables this behavior. Fixes #465
eladb
pushed a commit
that referenced
this issue
Nov 18, 2018
) `DifferenceCollection#filter` returns a new collection with changes filtered. Changed `DifferenceCollection#count` to do a lazy calculation since now `changes` is mutable. The toolkit switch `cdk diff --strict` disables this behavior. Fixes #465
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was making changes, and to verify I didn't break anything I ran
cdk diff
. This was the output:The tool was answering my question "did anything change" literally correct, but I would still argue that this is not helpful and we shouldn't include the
CDKMetadata
resource in the diff:Metadata
section, it would not have been part of the diff (even though the same data would have changed). Does that seem right to you?There is one good counterargument to be made--if
cdk diff
shows no diff, you would expectcdk deploy
to not do anything either, which would be broken by this change.I am willing to take that hit, as am I willing to udpate the stackset change checker to disregard changes to the
CDKMetadata
resource.The text was updated successfully, but these errors were encountered: