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 module github.com/configcat/go-sdk/v9 to v9.0.7 #561

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
2 changes: 1 addition & 1 deletion providers/configcat/go.mod
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ module github.com/open-feature/go-sdk-contrib/providers/configcat
go 1.21

require (
github.com/configcat/go-sdk/v9 v9.0.6
github.com/configcat/go-sdk/v9 v9.0.7
github.com/open-feature/go-sdk v1.11.0
github.com/stretchr/testify v1.9.0
)
2 changes: 2 additions & 0 deletions providers/configcat/go.sum
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
github.com/configcat/go-sdk/v9 v9.0.6 h1:wWoBqiOwA8q2TMHYfRLgF1Ub+qi1Wk3Opzag6mvz7ws=
github.com/configcat/go-sdk/v9 v9.0.6/go.mod h1:LA9GtJxbY8tQAs/LO4VQMPBNmlFqWMdWg707/hvrpmg=
github.com/configcat/go-sdk/v9 v9.0.7 h1:BGa2lzpkH8i/f5BI8TcNp6sAtV36aKxejV7nSFSwtu4=
github.com/configcat/go-sdk/v9 v9.0.7/go.mod h1:RXzI3PW8zBvycGwSEqH+/mPQx/SF+XSwf/ANaSSI+ag=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=

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) {