This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
ECS: replace github.com/sanathkr/go-yaml
with gopkg.in/yaml.v3
#2228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Currently we are using two YAML libraries:
github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b
gopkg.in/yaml.v3 v3.0.1
This PR replaces
github.com/sanathkr/go-yaml
withgopkg.in/yaml.v3
for ECS. Doing this require updating the AWS CloudFormation package fromv4.15.6
tov7.3.2
.The
github.com/sanathkr/go-yaml
was a fork and it was last updated in 2017. This library was added in #544, andgithub.com/awslabs/goformation
was also using the same library at that time. In AWS CloudFormation v7.2.0, they switched their YAML library togopkg.in/yaml.v3
(awslabs/goformation#535)./test-ecs
(not mandatory) A picture of a cute animal, if possible in relation with what you did