mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -23,8 +23,8 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/entc/load/internal"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/entc/load/internal"
|
||||
|
||||
"golang.org/x/tools/go/packages"
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ package load
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/schema/field"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -17,7 +17,7 @@ func TestLoad(t *testing.T) {
|
||||
spec, err := cfg.Load()
|
||||
require.NoError(t, err)
|
||||
require.Len(t, spec.Schemas, 3)
|
||||
require.Equal(t, "github.com/facebook/ent/entc/load/testdata/valid", spec.PkgPath)
|
||||
require.Equal(t, "entgo.io/ent/entc/load/testdata/valid", spec.PkgPath)
|
||||
|
||||
require.Equal(t, "Group", spec.Schemas[0].Name, "ordered alphabetically")
|
||||
require.Equal(t, "Tag", spec.Schemas[1].Name)
|
||||
@@ -37,7 +37,7 @@ func TestLoadSpecific(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Len(t, spec.Schemas, 1)
|
||||
require.Equal(t, "User", spec.Schemas[0].Name)
|
||||
require.Equal(t, "github.com/facebook/ent/entc/load/testdata/valid", spec.PkgPath)
|
||||
require.Equal(t, "entgo.io/ent/entc/load/testdata/valid", spec.PkgPath)
|
||||
}
|
||||
|
||||
func TestLoadNoSchema(t *testing.T) {
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema"
|
||||
"github.com/facebook/ent/schema/edge"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"github.com/facebook/ent/schema/index"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
"entgo.io/ent/schema/index"
|
||||
)
|
||||
|
||||
// Schema represents an ent.Schema that was loaded from a complied user package.
|
||||
|
||||
@@ -12,12 +12,12 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema"
|
||||
"github.com/facebook/ent/schema/edge"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"github.com/facebook/ent/schema/index"
|
||||
"github.com/facebook/ent/schema/mixin"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
"entgo.io/ent/schema/index"
|
||||
"entgo.io/ent/schema/mixin"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
4
entc/load/testdata/base/schema.go
vendored
4
entc/load/testdata/base/schema.go
vendored
@@ -5,8 +5,8 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// base schema for sharing fields and edges.
|
||||
|
||||
4
entc/load/testdata/failure/user.go
vendored
4
entc/load/testdata/failure/user.go
vendored
@@ -5,8 +5,8 @@
|
||||
package failure
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema/edge"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
|
||||
4
entc/load/testdata/valid/schema.go
vendored
4
entc/load/testdata/valid/schema.go
vendored
@@ -5,8 +5,8 @@
|
||||
package valid
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// User holds the user schema.
|
||||
|
||||
Reference in New Issue
Block a user