-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update koanf to v2 #7997
Update koanf to v2 #7997
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.
Is this addressing an issue or limitation with the older koanf library?
@knadh If you have the time, can you help us understand what changed between koanf v1 and v2 and what would be the benefits and changes if we update? |
Hi @mx-psi. Functionally, no changes. The package structure has changed where every provider/parser has become its own module (with its own go.mod) to become a one repository-many modules system. Benefits: It is safe (and also easy) to upgrade to v2 as it is functionally identical to v1. While this needn't be done on priority, I would recommend moving to v2 as that is where any continued improvements will land. v1 is frozen and will only receive security updates. |
Thanks for the detailed explanation @knadh :) If it helps reduce our dependency footprint and it doesn't imply any user-facing changes I am all in for moving to v2. What do you think @codeboten ? |
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.
Thanks for the explanation @knadh!
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.
Please run make gotidy
to tidy up the dependencies
I suspect the tests failed due to the github outage. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #7997 +/- ##
=======================================
Coverage 90.96% 90.96%
=======================================
Files 300 300
Lines 15090 15090
=======================================
Hits 13726 13726
Misses 1091 1091
Partials 273 273
☔ View full report in Codecov by Sentry. |
Needs one more |
I've done that now and squashed into the last commit |
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.
Thanks it's looking good now
This PR updates the koanf dependency to v2