-
Notifications
You must be signed in to change notification settings - Fork 413
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
chore(addons): merge two cfn template's Metadata section #995
Conversation
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.
Awesome! Ship it 🚢
metadataSection cfnSection = iota + 1 | ||
) | ||
|
||
// cloudformation represents a parsed YAML AWS CloudFormation template. |
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.
What do you think of renaming to "cfnTemplate" which will be more informative and avoiding struct and pkg sharing the same name cloudformation
?
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.
Done!
type cfnSection int | ||
|
||
const ( | ||
metadataSection cfnSection = iota + 1 |
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.
nice! good trick
go.mod
Outdated
golang.org/x/text v0.3.2 // indirect | ||
gopkg.in/ini.v1 v1.57.0 | ||
gopkg.in/yaml.v2 v2.3.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.
Why bring in v2 of yaml??
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.
Is this because of mergo?
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 have no idea 🤷♂️ I ran go mod tidy
again and cleaned up a bunch of old dependencies.
I wonder if I can get dependabot to run tidy periodically 💭
I updated the PR with an additional function
|
Merges the "Metadata" section of two cfn templates under "addons/".
Related to #994
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.