Repository navigation
Replaced ghodss/yaml with sigs.k8s.io/yaml [dev-v3] - #6016
Merged
Merged
Conversation
This commit replaces usage of github.com/ghodss/yaml with it's forked version maintained by SIG community. The replaced library has low-to-none support activity unlike the latter. We believe the new Helm branch could benefit from using the community-supported version on a long-term run as yaml parser is a key component of Helm chart rendering engine. This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which is backwards compatible with ghodss/yaml 1.0.0. This change also resolves the outdated dependency version lock for ghodss/yaml (currently 1.0.0) and makes it possible to port changes from #6010 to dev-v3. Signed-off-by: Oleg Sidorov <[email protected]>
Contributor
|
@adamreese or @bacongobbler can one of you take a look at this as well? This is a major dependency change that looks like it is ok, but I want two maintainers to sign off on it just to be sure |
thomastaylor312
approved these changes
Jul 15, 2019
thomastaylor312
left a comment
Contributor
There was a problem hiding this comment.
I ran this with the acceptance test suite @jdolitsky wrote and everything seems to be in working order. Thanks for doing all the research on backwards compatibility @icanhazbroccoli!
mattfarina
approved these changes
Jul 15, 2019
mattfarina
left a comment
Collaborator
There was a problem hiding this comment.
Being that the existing lib we use has not had a release in 2 years but there have been some features and bug fixes merged since the release... it's worth using a maintained copy of the library. The license didn't change.
This was referenced Jul 17, 2019
Merged
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 this PR does / why we need it:
This PR proposes a replacement of github.com/ghodss/yaml with it's forked version maintained by SIG community. The replaceable library has low-to-none support activity unlike the latter. The SIG version is marked as a permanent fork. We believe the new Helm branch (v3) could benefit from using the Kubernetes community-maintained version on a long-term run as yaml parser is a key component of Helm chart rendering engine.
This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which is backwards compatible with ghodss/yaml 1.0.0 (this statement needs a remark: strictly speaking, the change is breaking: see the relevant comments: ghodss/yaml#50 (comment) and ghodss/yaml#50 (comment), but after a deep dive, Helm and it's dependencies are believed to be backwards compatible with the change).
This change also resolves the outdated dependency version lock for ghodss/yaml (currently 1.0.0) and makes it possible to port changes from #6010 to dev-v3.
Signed-off-by: Oleg Sidorov [email protected]
Special notes for your reviewer:
I was asked to port changes from #6010 to dev-v3. If this change makes sense, porting the fix would be a pretty trivial follow-up step.
If applicable: