mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
all: facebookincubator/ent => facebook/ent (#660)
ent repository is going to be migrated to facebook organization
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/facebookincubator/ent/entc/gen"
|
||||
"github.com/facebook/ent/entc/gen"
|
||||
|
||||
"github.com/olekukonko/tablewriter"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user