go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)

This commit is contained in:
Ariel Mashraki
2021-02-02 23:03:04 +02:00
committed by GitHub
parent 7a2173f20d
commit dd4792f5b3
1087 changed files with 3956 additions and 3956 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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"
)

View File

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

View File

@@ -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.

View File

@@ -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"

View File

@@ -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.

View File

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

View File

@@ -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.