Skip to content

Conversation

mstrandboge
Copy link
Member

Summary

Moves from gopkg.in/yaml.v2 to go.yaml.in/yaml/v2

The libraries are the same, but the old name had its repo deprecated and its version pinned at 2.4.0: https://github.com/go-yaml/yaml/tree/v2.4.0

The new library is located here on github: https://github.com/yaml/go-yaml/tree/v2/

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #

@mstrandboge mstrandboge self-assigned this Sep 9, 2025
@telegraf-tiger telegraf-tiger bot added the chore label Sep 9, 2025
@mstrandboge mstrandboge assigned skartikey and srebhan and unassigned mstrandboge Sep 9, 2025
@skartikey
Copy link
Contributor

@mstrandboge Thanks for the update! This PR upgrades to v2, which seems like the safest migration path. I just wanted to note that there’s also a newer version available (gopkg.in/yaml.v4).
Do you know if moving directly to v4 was considered? While v2 makes sense for stability, v4 might provide longer-term benefits. If there were compatibility concerns or breaking changes that led us to stick with v2, it could be useful to document those for future reference.

@skartikey skartikey added the waiting for response waiting for response from contributor label Oct 3, 2025
@mstrandboge
Copy link
Member Author

@skartikey There is a v4 though it currently only is in release candidates. I can update us to the v3 in the mean time and keep an eye on this for the future

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Oct 9, 2025
@skartikey
Copy link
Contributor

@mstrandboge Yes, please. That's a good plan.

Copy link
Contributor

@skartikey skartikey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstrandboge Thanks!

@skartikey skartikey assigned srebhan and unassigned skartikey Oct 10, 2025
@skartikey skartikey added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Oct 10, 2025
@telegraf-tiger
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants