Skip to content
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

fix(deps): update golang.org/x/exp digest to 054e65f #515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions providers/flagd/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-feature/go-sdk-contrib/providers/flagd

go 1.22.7
go 1.23.0

toolchain go1.23.6

@@ -19,7 +19,7 @@ require (
github.com/open-feature/go-sdk-contrib/tests/flagd v1.4.1
go.uber.org/mock v0.5.0
go.uber.org/zap v1.27.0
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
golang.org/x/net v0.34.0
google.golang.org/grpc v1.70.0
google.golang.org/protobuf v1.36.5
@@ -49,7 +49,7 @@ require (
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/mod v0.24.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.22.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
4 changes: 4 additions & 0 deletions providers/flagd/go.sum
Original file line number Diff line number Diff line change
@@ -127,8 +127,12 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac h1:l5+whBCLH3iH2ZNHYLbAe58bo7yrN4mVcnkHDYz5vvs=
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac/go.mod h1:hH+7mtFmImwwcMvScyxUhjuVHR3HGaDPMn9rMSUUbxo=
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
8 changes: 5 additions & 3 deletions providers/launchdarkly/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
module github.com/open-feature/go-sdk-contrib/providers/launchdarkly

go 1.21
go 1.23.0

toolchain go1.24.1

require (
github.com/hooklift/assert v0.1.0
github.com/launchdarkly/go-sdk-common/v3 v3.1.0
github.com/launchdarkly/go-server-sdk/v7 v7.6.2
github.com/open-feature/go-sdk v1.12.0
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
)

require (
@@ -23,7 +25,7 @@ require (
github.com/launchdarkly/go-server-sdk-evaluation/v3 v3.0.1 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sync v0.12.0 // indirect
gopkg.in/ghodss/yaml.v1 v1.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
4 changes: 4 additions & 0 deletions providers/launchdarkly/go.sum
Original file line number Diff line number Diff line change
@@ -69,10 +69,14 @@ golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuh
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa h1:ELnwvuAXPNtPk1TJRuGkI9fDTwym6AYBu0qzT8AcHdI=
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ=
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

Unchanged files with check annotations Beta

)
func Example() {
openfeature.SetProvider(flipt.NewProvider(

Check failure on line 11 in providers/flipt/pkg/provider/example_test.go

GitHub Actions / lint

Error return value of `openfeature.SetProvider` is not checked (errcheck)
flipt.WithAddress("localhost:9000"),
))
type Cache struct {
internalCache gcache.Cache
maxEventInMemory int64

Check failure on line 16 in providers/go-feature-flag/pkg/controller/cache.go

GitHub Actions / lint

field `maxEventInMemory` is unused (unused)
ttl time.Duration
disabled bool
}
)
// responderQueue is a type that manages a queue of responders
type responderQueue struct {

Check failure on line 35 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

type `responderQueue` is unused (unused)
responders []httpmock.Responder
index int
}
// newResponderQueue creates a new instance of responderQueue with the provided responders
func newResponderQueue(responders []httpmock.Responder) *responderQueue {

Check failure on line 41 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

func `newResponderQueue` is unused (unused)
return &responderQueue{
responders: responders,
index: 0,
}
// getNextResponder is a method that returns the next responder in the queue
func (q *responderQueue) getNextResponder(req *http.Request) (*http.Response, error) {

Check failure on line 49 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

func `(*responderQueue).getNextResponder` is unused (unused)
if q.index >= len(q.responders) {
// Stop running tests as the input is invalid at this stage.
log.Fatal("Not enough responders provided to the test function being executed")
}
// Same as registerResponders except the auth response can be different per call
func registerMultipleResponseResponders(authResponder []httpmock.Responder, targetSegmentsResponder httpmock.Responder, featureConfigsResponder httpmock.Responder) {

Check failure on line 75 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

func `registerMultipleResponseResponders` is unused (unused)
authQueue := newResponderQueue(authResponder)
httpmock.RegisterResponder("POST", "http://localhost/api/1.0/client/auth", authQueue.getNextResponder)
require.Equal(t, false, resolution.Value)
})
of.SetProvider(provider)

Check failure on line 127 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

Error return value of `of.SetProvider` is not checked (errcheck)
ofClient := of.NewClient("my-app")
evalCtx := of.NewEvaluationContext(
"Email": "john@doe.com",
},
)
enabled, err := ofClient.BooleanValue(context.Background(), "TestTrueOn", false, evalCtx)

Check failure on line 138 in providers/harness/pkg/provider_test.go

GitHub Actions / lint

ineffectual assignment to err (ineffassign)
if enabled == false {
t.Fatalf("Expected feature to be enabled")
}
Sources: []string{"datafile://non-existing.yaml"},
}
errorProvider, _ := prefabProvider.NewProvider(providerConfig)
errorProvider.Init(of.EvaluationContext{})

Check failure on line 249 in providers/prefab/pkg/provider_test.go

GitHub Actions / lint

Error return value of `errorProvider.Init` is not checked (errcheck)
boolRes := errorProvider.BooleanEvaluation(context.Background(), "sample_bool", false, flattenedContext)
require.Equal(t, of.GeneralCode, boolRes.ResolutionDetail().ErrorCode)
providerConfig = prefabProvider.ProviderConfig{}
errorProvider, _ = prefabProvider.NewProvider(providerConfig)
errorProvider.Init(of.EvaluationContext{})

Check failure on line 268 in providers/prefab/pkg/provider_test.go

GitHub Actions / lint

Error return value of `errorProvider.Init` is not checked (errcheck)
}
func TestEvaluationMethods(t *testing.T) {