Skip to content

Commit

Permalink
[Chore] Update github repo references (#43)
Browse files Browse the repository at this point in the history
replace all occurences of github.com/kenji-yamane/mgr8 with github.com/migratemgr8/mgr8
  • Loading branch information
atedesch1 authored Jun 8, 2022
1 parent 9737cb3 commit bb4b71a
Show file tree
Hide file tree
Showing 36 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGE_NAME := github.com/kenji-yamane/mgr8
PACKAGE_NAME := github.com/migratemgr8/mgr8
GOLANG_CROSS_VERSION ?= v1.17.6

.PHONY: build
Expand Down
2 changes: 1 addition & 1 deletion applications/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"log"

"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/infrastructure"
)

type CheckCommand interface {
Expand Down
2 changes: 1 addition & 1 deletion applications/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

infrastructure_mock "github.com/kenji-yamane/mgr8/mock/infrastructure"
infrastructure_mock "github.com/migratemgr8/mgr8/mock/infrastructure"
)

var _ = Describe("Check Command", func() {
Expand Down
2 changes: 1 addition & 1 deletion applications/empty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

applications_mock "github.com/kenji-yamane/mgr8/mock/applications"
applications_mock "github.com/migratemgr8/mgr8/mock/applications"
)

var _ = Describe("Empty Command", func() {
Expand Down
6 changes: 3 additions & 3 deletions applications/generate.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package applications

import (
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/global"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/global"
"github.com/migratemgr8/mgr8/infrastructure"
)

type GenerateCommand interface {
Expand Down
8 changes: 4 additions & 4 deletions applications/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/kenji-yamane/mgr8/domain"
applications_mock "github.com/kenji-yamane/mgr8/mock/applications"
domain_mock "github.com/kenji-yamane/mgr8/mock/domain"
infrastructure_mock "github.com/kenji-yamane/mgr8/mock/infrastructure"
"github.com/migratemgr8/mgr8/domain"
applications_mock "github.com/migratemgr8/mgr8/mock/applications"
domain_mock "github.com/migratemgr8/mgr8/mock/domain"
infrastructure_mock "github.com/migratemgr8/mgr8/mock/infrastructure"
)

var _ = Describe("Generate Command", func() {
Expand Down
2 changes: 1 addition & 1 deletion applications/hashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/md5"
"encoding/hex"

"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/infrastructure"
)

type HashService interface {
Expand Down
2 changes: 1 addition & 1 deletion applications/hashing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

infrastructure_mock "github.com/kenji-yamane/mgr8/mock/infrastructure"
infrastructure_mock "github.com/migratemgr8/mgr8/mock/infrastructure"
)

var _ = Describe("Hashing", func() {
Expand Down
2 changes: 1 addition & 1 deletion applications/init.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package applications

import (
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/infrastructure"
)

type InitCommand interface {
Expand Down
16 changes: 8 additions & 8 deletions applications/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

infrastructure_mock "github.com/kenji-yamane/mgr8/mock/infrastructure"
infrastructure_mock "github.com/migratemgr8/mgr8/mock/infrastructure"
)

var _ = Describe("Init Command", func() {
Expand All @@ -18,11 +18,11 @@ var _ = Describe("Init Command", func() {

Context("Execute", func() {
var (
mockFileService *infrastructure_mock.MockFileService
content = "file_content"
fileName = "file_name"
mockFileService *infrastructure_mock.MockFileService
content = "file_content"
fileName = "file_name"
applicationFolder = "app_folder"
referenceFile = "ref_file"
referenceFile = "ref_file"
)
BeforeEach(func() {
ctrl := gomock.NewController(_t)
Expand All @@ -43,7 +43,7 @@ var _ = Describe("Init Command", func() {
It("Fails", func() {
expectedError := errors.New("could not read file")
mockFileService.EXPECT().Read("file_name").Return("", expectedError)
err := subject.Execute(applicationFolder, referenceFile,"file_name")
err := subject.Execute(applicationFolder, referenceFile, "file_name")
Expect(err).To(Equal(expectedError))
})
})
Expand All @@ -54,7 +54,7 @@ var _ = Describe("Init Command", func() {
mockFileService.EXPECT().CreateFolderIfNotExists(applicationFolder).Return(nil)
mockFileService.EXPECT().Read(fileName).Return(content, nil)
mockFileService.EXPECT().Write(applicationFolder, referenceFile, content).Return(expectedError)
err := subject.Execute(applicationFolder, referenceFile,"file_name")
err := subject.Execute(applicationFolder, referenceFile, "file_name")
Expect(err).To(Equal(expectedError))
})
})
Expand All @@ -64,7 +64,7 @@ var _ = Describe("Init Command", func() {
expectedError := errors.New("could not create folder")
mockFileService.EXPECT().CreateFolderIfNotExists(applicationFolder).Return(expectedError)
mockFileService.EXPECT().Read(fileName).Return(content, nil)
err := subject.Execute(applicationFolder, referenceFile,"file_name")
err := subject.Execute(applicationFolder, referenceFile, "file_name")
Expect(err).To(Equal(expectedError))
})
})
Expand Down
2 changes: 1 addition & 1 deletion applications/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

var ErrInvalidMigrationType = errors.New("migration type should be either up/down")
Expand Down
2 changes: 1 addition & 1 deletion applications/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

domain_mock "github.com/kenji-yamane/mgr8/mock/domain"
domain_mock "github.com/migratemgr8/mgr8/mock/domain"
)

var _ = Describe("Logs", func() {
Expand Down
4 changes: 2 additions & 2 deletions applications/migrationscripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
)

type MigrationFileService interface {
Expand Down
10 changes: 5 additions & 5 deletions applications/migrationscripts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
applications_mock "github.com/kenji-yamane/mgr8/mock/applications"
domain_mock "github.com/kenji-yamane/mgr8/mock/domain"
infrastructure_mock "github.com/kenji-yamane/mgr8/mock/infrastructure"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
applications_mock "github.com/migratemgr8/mgr8/mock/applications"
domain_mock "github.com/migratemgr8/mgr8/mock/domain"
infrastructure_mock "github.com/migratemgr8/mgr8/mock/infrastructure"
)

var _ = Describe("Migration Scripts", func() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"
"time"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
)

type apply struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/spf13/cobra"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/global"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/global"
"github.com/migratemgr8/mgr8/infrastructure"
)

type CheckCommand struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"log"

"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/drivers"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/drivers"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"log"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
)

type diff struct{}
Expand Down
8 changes: 4 additions & 4 deletions cmd/empty.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package cmd
import (
"log"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
)

type empty struct{
type empty struct {
emptyCommand applications.EmptyCommand
}

Expand Down
6 changes: 3 additions & 3 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/spf13/cobra"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/global"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/global"
"github.com/migratemgr8/mgr8/infrastructure"
)

type InitCommand struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"io/ioutil"
"path"

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
"github.com/migratemgr8/mgr8/applications"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/infrastructure"
)

type validate struct{}
Expand Down
4 changes: 2 additions & 2 deletions domain/column_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package domain_test

import (
"github.com/golang/mock/gomock"
"github.com/kenji-yamane/mgr8/domain"
domain_mock "github.com/kenji-yamane/mgr8/mock/domain"
"github.com/migratemgr8/mgr8/domain"
domain_mock "github.com/migratemgr8/mgr8/mock/domain"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion domain/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

var _ = Describe("Schema Diff", func() {
Expand Down
4 changes: 2 additions & 2 deletions domain/table_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package domain_test

import (
"github.com/golang/mock/gomock"
"github.com/kenji-yamane/mgr8/domain"
domain_mock "github.com/kenji-yamane/mgr8/mock/domain"
"github.com/migratemgr8/mgr8/domain"
domain_mock "github.com/migratemgr8/mgr8/mock/domain"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
6 changes: 3 additions & 3 deletions drivers/drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package drivers
import (
"fmt"

"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/drivers/mysql"
"github.com/kenji-yamane/mgr8/drivers/postgres"
"github.com/migratemgr8/mgr8/domain"
"github.com/migratemgr8/mgr8/drivers/mysql"
"github.com/migratemgr8/mgr8/drivers/postgres"
)

type DriverName string
Expand Down
2 changes: 1 addition & 1 deletion drivers/mysql/deparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mysql
import (
"fmt"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

type deparser struct{}
Expand Down
2 changes: 1 addition & 1 deletion drivers/mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

var _ = Describe("MySql Driver", func() {
Expand Down
2 changes: 1 addition & 1 deletion drivers/mysql/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/pingcap/parser/ast"
_ "github.com/pingcap/tidb/types/parser_driver"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

type mySqlDriver struct {
Expand Down
2 changes: 1 addition & 1 deletion drivers/postgres/deparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

type deparser struct{}
Expand Down
2 changes: 1 addition & 1 deletion drivers/postgres/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"fmt"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

type postgresDriver struct {
Expand Down
2 changes: 1 addition & 1 deletion drivers/postgres/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/kenji-yamane/mgr8/domain"
"github.com/migratemgr8/mgr8/domain"
)

var _ = Describe("Postgres Driver", func() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kenji-yamane/mgr8
module github.com/migratemgr8/mgr8

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/kenji-yamane/mgr8/cmd"
import "github.com/migratemgr8/mgr8/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion mock/applications/migrationscripts_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb4b71a

Please sign in to comment.