Skip to content

Commit 991726c

Browse files
authored
feat: Move all files from pkg/openfeature to openfeature. (#232)
Move all files from pkg/openfeature to openfeature. Move the package from being github.com/open-feature/go-sdk/pkg/openfeature, which has an unnecessary pkg in the import path, to github.com/open-feature/go-sdk/openfeature, without the unnecessary "pkg" in the import path. The existing github.com/open-feature/go-sdk/pkg/openfeature package is now a compatibility shell; exported types, constants, variables, and functions are now aliased to the new github.com/open-feature/go-sdk/openfeature equivalents in a way that will pass equality checks, and types are interchangeable between both packages. No logic or tests live in the package anymore, only the exported identifiers, which call through to the new package for behavior. The memprovider package, similarly, has moved. Signed-off-by: Paddy Carver <[email protected]>
1 parent 34fb9d9 commit 991726c

38 files changed

+2044
-1360
lines changed

e2e/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package e2e_test
22

33
import (
4-
"github.com/open-feature/go-sdk/pkg/openfeature"
5-
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
4+
"github.com/open-feature/go-sdk/openfeature"
5+
"github.com/open-feature/go-sdk/openfeature/memprovider"
66
)
77

88
// ctxFunction is a context based evaluation callback

e2e/evaluation_fuzz_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/open-feature/go-sdk/pkg/openfeature"
9-
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
8+
"github.com/open-feature/go-sdk/openfeature"
9+
"github.com/open-feature/go-sdk/openfeature/memprovider"
1010
)
1111

1212
func setupFuzzClient(f *testing.F) *openfeature.Client {

e2e/evaluation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"testing"
99

1010
"github.com/cucumber/godog"
11-
"github.com/open-feature/go-sdk/pkg/openfeature"
12-
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
11+
"github.com/open-feature/go-sdk/openfeature"
12+
"github.com/open-feature/go-sdk/openfeature/memprovider"
1313
)
1414

1515
var client = openfeature.NewClient("evaluation tests")

pkg/openfeature/api.go renamed to openfeature/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync"
66

77
"github.com/go-logr/logr"
8-
"github.com/open-feature/go-sdk/pkg/openfeature/internal"
8+
"github.com/open-feature/go-sdk/openfeature/internal"
99
"golang.org/x/exp/maps"
1010
)
1111

0 commit comments

Comments
 (0)