refactor: remove dependency on golang.org/x/exp#320
Merged
beeme1mr merged 1 commit intoopen-feature:mainfrom Feb 18, 2025
Merged
refactor: remove dependency on golang.org/x/exp#320beeme1mr merged 1 commit intoopen-feature:mainfrom
beeme1mr merged 1 commit intoopen-feature:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
==========================================
- Coverage 86.88% 86.78% -0.10%
==========================================
Files 13 13
Lines 1372 1362 -10
==========================================
- Hits 1192 1182 -10
Misses 156 156
Partials 24 24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
beeme1mr
approved these changes
Feb 13, 2025
1 task
Member
|
Greets @treuherz, could you please update this branch? Your fork must not allow me to update it myself. Please @ mention me once it's up to date so I can merge the change. Thanks again for the PR. |
The exp module does not have the same compatibility guarantees as the standard library. The fact that it stays on a pseudo-version instead of a proper semver tag, and the possibility for backwards-incompatible changes, makes depending on exp in a widely-imported library a bit risky. If a dependent of the SDK updated the version of exp they relied on, the MVS algorithm could select a version that broke the SDK's usage of exp's packages. Out of an abundance of caution, I'm trying to reduce the use of exp in our private shared libraries for this reason, and the OpenFeature SDK is our only external dependency that depends on it it. The uses are pretty small. I've replaced them with existing standard library functiosn where possible, or in one place implemented the functionality myself, since `maps.Values` is only available in the standard library from go 1.23. While in the area, I've also updated a couple of functions that are already replaceable with functions from the standard slices package. Signed-off-by: Eli Treuherz <et@arenko.group>
auto-merge was automatically disabled
February 18, 2025 15:54
Head branch was pushed to by a user without write access
Contributor
Author
|
@beeme1mr Rebased! |
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.
This PR
The exp module does not have the same compatibility guarantees as the standard library. The fact that it stays on a pseudo-version instead of a proper semver tag, and the possibility for backwards-incompatible changes, makes depending on exp in a widely-imported library a bit risky. If a dependent of the SDK updated the version of exp they relied on, the MVS algorithm could select a version that broke the SDK's usage of exp's packages.
Out of an abundance of caution, I'm trying to reduce the use of exp in our private shared libraries for this reason, and the OpenFeature SDK is our only external dependency that depends on it it. The uses are pretty small. I've replaced them with existing standard library functiosn where possible, or in one place implemented the functionality myself, since
maps.Valuesis only available in the standard library from go 1.23.While in the area, I've also updated a couple of functions that are already replaceable with functions from the standard slices package.
How to test
Unit and E2E tests all pass localy.