all: facebookincubator/ent => facebook/ent (#660)

ent repository is going to be migrated to facebook organization
This commit is contained in:
Ariel Mashraki
2020-08-18 11:05:08 +03:00
committed by GitHub
parent a2990e31af
commit fd0a7f9f02
897 changed files with 3100 additions and 3100 deletions

View File

@@ -16,9 +16,9 @@ import (
"text/template"
"unicode"
"github.com/facebookincubator/ent/entc"
"github.com/facebookincubator/ent/entc/gen"
"github.com/facebookincubator/ent/schema/field"
"github.com/facebook/ent/entc"
"github.com/facebook/ent/entc/gen"
"github.com/facebook/ent/schema/field"
"github.com/spf13/cobra"
)
@@ -207,7 +207,7 @@ func createDir(target string) error {
var tmpl = template.Must(template.New("schema").
Parse(`package schema
import "github.com/facebookincubator/ent"
import "github.com/facebook/ent"
// {{ . }} holds the schema definition for the {{ . }} entity.
type {{ . }} struct {
@@ -229,7 +229,7 @@ const (
// default schema package path.
defaultSchema = "ent/schema"
// ent/generate.go file used for "go generate" command.
genFile = "package ent\n\n//go:generate go run github.com/facebookincubator/ent/cmd/entc generate ./schema\n"
genFile = "package ent\n\n//go:generate go run github.com/facebook/ent/cmd/entc generate ./schema\n"
)
// examples formats the given examples to the cli.

View File

@@ -15,7 +15,7 @@ import (
func TestCmd(t *testing.T) {
defer os.RemoveAll("ent")
cmd := exec.Command("go", "run", "github.com/facebookincubator/ent/cmd/entc", "init", "User")
cmd := exec.Command("go", "run", "github.com/facebook/ent/cmd/entc", "init", "User")
stderr := bytes.NewBuffer(nil)
cmd.Stderr = stderr
require.NoError(t, cmd.Run(), stderr.String())
@@ -25,7 +25,7 @@ func TestCmd(t *testing.T) {
_, err = os.Stat("ent/schema/user.go")
require.NoError(t, err)
cmd = exec.Command("go", "run", "github.com/facebookincubator/ent/cmd/entc", "generate", "./ent/schema")
cmd = exec.Command("go", "run", "github.com/facebook/ent/cmd/entc", "generate", "./ent/schema")
stderr = bytes.NewBuffer(nil)
cmd.Stderr = stderr
require.NoError(t, cmd.Run(), stderr.String())

View File

@@ -11,7 +11,7 @@ import (
"strconv"
"strings"
"github.com/facebookincubator/ent/entc/gen"
"github.com/facebook/ent/entc/gen"
"github.com/olekukonko/tablewriter"
)

View File

@@ -8,8 +8,8 @@ import (
"strings"
"testing"
"github.com/facebookincubator/ent/entc/gen"
"github.com/facebookincubator/ent/schema/field"
"github.com/facebook/ent/entc/gen"
"github.com/facebook/ent/schema/field"
"github.com/stretchr/testify/assert"
)