diff --git a/go.mod b/go.mod index 9e3ec7af68..2efadd31aa 100644 --- a/go.mod +++ b/go.mod @@ -50,7 +50,7 @@ require ( github.com/nats-io/nats.go v1.37.0 github.com/oapi-codegen/runtime v1.1.1 github.com/olekukonko/tablewriter v0.0.5 - github.com/open-feature/go-sdk v1.13.1 + github.com/open-feature/go-sdk v1.14.0 github.com/open-feature/go-sdk-contrib/providers/go-feature-flag-in-process v0.1.0 github.com/open-policy-agent/opa v0.70.0 github.com/openfga/go-sdk v0.6.3 diff --git a/go.sum b/go.sum index ddfb24dcb6..ba93184546 100644 --- a/go.sum +++ b/go.sum @@ -848,8 +848,8 @@ github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= -github.com/open-feature/go-sdk v1.13.1 h1:RJbS70eyi7Jd3Zm5bFnaahNKNDXn+RAVnctpGu+uPis= -github.com/open-feature/go-sdk v1.13.1/go.mod h1:O8r4mhgeRIsjJ0ZBXlnE0BtbT/79W44gQceR7K8KYgo= +github.com/open-feature/go-sdk v1.14.0 h1:+B+Z94QS4HXPAn6OnaWWjMNAJkHlh6pIqW2Y1194yF8= +github.com/open-feature/go-sdk v1.14.0/go.mod h1:t337k0VB/t/YxJ9S0prT30ISUHwYmUd/jhUZgFcOvGg= github.com/open-feature/go-sdk-contrib/providers/go-feature-flag-in-process v0.1.0 h1:EFIT5QBQ/T3lNVLmma69SNQbAWBgAl+EtcH0VfrdM7Y= github.com/open-feature/go-sdk-contrib/providers/go-feature-flag-in-process v0.1.0/go.mod h1:DpptytCB+FbUIoRjTGtSDEA82aojWC4MIxL8GOK26Rs= github.com/open-policy-agent/opa v0.70.0 h1:B3cqCN2iQAyKxK6+GI+N40uqkin+wzIrM7YA60t9x1U= diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 0bfcfee2e0..12ba6f226b 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -70,7 +70,7 @@ func OpenFeatureProviderFromFlags(ctx context.Context, cfg config.FlagsConfig) { } if flagProvider != nil { - if err := openfeature.SetProvider(flagProvider); err != nil { + if err := openfeature.SetProviderAndWait(flagProvider); err != nil { zerolog.Ctx(ctx).Error().Err(err).Msg("Unable to set flag provider, continuing without flag data") } else { zerolog.Ctx(ctx).Info().Msg("Feature flag provider installed") diff --git a/internal/flags/test_client.go b/internal/flags/test_client.go index 1930fe3807..4afac21c77 100644 --- a/internal/flags/test_client.go +++ b/internal/flags/test_client.go @@ -168,3 +168,13 @@ func (_ *FakeClient) StringValueDetails(_ context.Context, _ string, _ string, _ openfeature.EvaluationContext, _ ...openfeature.Option) (openfeature.StringEvaluationDetails, error) { panic("unimplemented") } + +// State implements openfeature.IClient. +func (_ *FakeClient) State() openfeature.State { + panic("unimplemented") +} + +// Track implements openfeature.ITracking. +func (_ *FakeClient) Track(ctx context.Context, trackingEventName string, evalCtx openfeature.EvaluationContext, details openfeature.TrackingEventDetails) { + panic("unimplemented") +}