diff --git a/cmd/root.go b/cmd/root.go index 04e8d92..1afe354 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,8 +1,8 @@ package cmd import ( - cmd2 "github.com/sandstorm/synco/pkg/receive/cmd" - "github.com/sandstorm/synco/pkg/serve/cmd" + cmd2 "github.com/sandstorm/synco/v2/pkg/receive/cmd" + "github.com/sandstorm/synco/v2/pkg/serve/cmd" "github.com/spf13/cobra" "os" ) diff --git a/go.mod b/go.mod index a8e8796..07d9b2f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/sandstorm/synco +module github.com/sandstorm/synco/v2 go 1.19 diff --git a/lite/cmd-lite/root-lite.go b/lite/cmd-lite/root-lite.go index 33d8ca9..a167d62 100644 --- a/lite/cmd-lite/root-lite.go +++ b/lite/cmd-lite/root-lite.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/sandstorm/synco/pkg/serve/cmd" + "github.com/sandstorm/synco/v2/pkg/serve/cmd" "github.com/spf13/cobra" "os" ) diff --git a/lite/main-lite.go b/lite/main-lite.go index d14fc74..326489e 100644 --- a/lite/main-lite.go +++ b/lite/main-lite.go @@ -1,7 +1,7 @@ package main import ( - cmd_lite "github.com/sandstorm/synco/lite/cmd-lite" + cmd_lite "github.com/sandstorm/synco/v2/lite/cmd-lite" ) func main() { diff --git a/main.go b/main.go index 067605e..565d928 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import ( "github.com/pterm/pterm" - "github.com/sandstorm/synco/cmd" + "github.com/sandstorm/synco/v2/cmd" "os" "os/signal" ) diff --git a/pkg/common/commonServe/databaseDump.go b/pkg/common/commonServe/databaseDump.go index fac7734..c6473f5 100644 --- a/pkg/common/commonServe/databaseDump.go +++ b/pkg/common/commonServe/databaseDump.go @@ -3,10 +3,10 @@ package commonServe import ( "database/sql" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/serve" - "github.com/sandstorm/synco/pkg/util/mysql" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/util/mysql" ) func DatabaseDump(transferSession *serve.TransferSession, dbCredentials *common.DbCredentials, whereClauseForTables map[string]string) *sql.DB { diff --git a/pkg/common/commonServe/writeResources.go b/pkg/common/commonServe/writeResources.go index 87c1a89..0fd9d8a 100644 --- a/pkg/common/commonServe/writeResources.go +++ b/pkg/common/commonServe/writeResources.go @@ -3,8 +3,8 @@ package commonServe import ( "encoding/json" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/serve" ) func WriteResourcesIndex(transferSession *serve.TransferSession, fileSetType dto.FileSetType, name string, resourceFilesIndex dto.PublicFilesIndex, totalSizeBytes uint64) { diff --git a/pkg/common/types.go b/pkg/common/types.go index 12e9755..5f276ee 100644 --- a/pkg/common/types.go +++ b/pkg/common/types.go @@ -1,8 +1,8 @@ package common import ( - "github.com/sandstorm/synco/pkg/receive" - "github.com/sandstorm/synco/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/receive" + "github.com/sandstorm/synco/v2/pkg/serve" ) type ReceiveFramework interface { diff --git a/pkg/frameworks/flowReceive/flowReceive.go b/pkg/frameworks/flowReceive/flowReceive.go index 2efd9b7..c8d7a6b 100644 --- a/pkg/frameworks/flowReceive/flowReceive.go +++ b/pkg/frameworks/flowReceive/flowReceive.go @@ -1,8 +1,8 @@ package flowReceive import ( - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/receive" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/receive" ) type flowReceive struct { diff --git a/pkg/frameworks/flowServe/flowServe.go b/pkg/frameworks/flowServe/flowServe.go index 8bd7c0f..b65c660 100644 --- a/pkg/frameworks/flowServe/flowServe.go +++ b/pkg/frameworks/flowServe/flowServe.go @@ -4,11 +4,11 @@ import ( "database/sql" "fmt" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/common/commonServe" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/serve" - "github.com/sandstorm/synco/pkg/util" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/common/commonServe" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/util" "gopkg.in/yaml.v3" "log" "net/url" diff --git a/pkg/frameworks/laravelServe/laravelServe.go b/pkg/frameworks/laravelServe/laravelServe.go index bca5550..cf8a526 100644 --- a/pkg/frameworks/laravelServe/laravelServe.go +++ b/pkg/frameworks/laravelServe/laravelServe.go @@ -5,11 +5,11 @@ import ( "encoding/json" "fmt" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/common/commonServe" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/serve" - "github.com/sandstorm/synco/pkg/util" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/common/commonServe" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/util" "io" "log" "net/url" diff --git a/pkg/receive/cmd/framework-registration.go b/pkg/receive/cmd/framework-registration.go index 1115dce..ff6da3c 100644 --- a/pkg/receive/cmd/framework-registration.go +++ b/pkg/receive/cmd/framework-registration.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/frameworks/flowReceive" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/frameworks/flowReceive" ) var RegisteredFrameworks = [...]common.ReceiveFramework{ diff --git a/pkg/receive/cmd/receive-cmd.go b/pkg/receive/cmd/receive-cmd.go index f9ec167..27d2b94 100644 --- a/pkg/receive/cmd/receive-cmd.go +++ b/pkg/receive/cmd/receive-cmd.go @@ -8,12 +8,12 @@ import ( "fmt" "github.com/pterm/pterm" "github.com/repeale/fp-go" - "github.com/sandstorm/synco/pkg/common/config" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/receive" - "github.com/sandstorm/synco/pkg/ui/boolselect" - "github.com/sandstorm/synco/pkg/ui/multiselect" - "github.com/sandstorm/synco/pkg/ui/textinput" + "github.com/sandstorm/synco/v2/pkg/common/config" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/receive" + "github.com/sandstorm/synco/v2/pkg/ui/boolselect" + "github.com/sandstorm/synco/v2/pkg/ui/multiselect" + "github.com/sandstorm/synco/v2/pkg/ui/textinput" "github.com/spf13/cobra" "io" "net/url" diff --git a/pkg/receive/receive-session.go b/pkg/receive/receive-session.go index 3fd1541..a1f0abb 100644 --- a/pkg/receive/receive-session.go +++ b/pkg/receive/receive-session.go @@ -9,8 +9,8 @@ import ( "filippo.io/age" "fmt" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common/dto" - "github.com/sandstorm/synco/pkg/ui/boolselect" + "github.com/sandstorm/synco/v2/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/ui/boolselect" "io" "net" "net/http" diff --git a/pkg/serve/cmd/framework-registration.go b/pkg/serve/cmd/framework-registration.go index a4e4edd..8aa2578 100644 --- a/pkg/serve/cmd/framework-registration.go +++ b/pkg/serve/cmd/framework-registration.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/sandstorm/synco/pkg/common" - "github.com/sandstorm/synco/pkg/frameworks/flowServe" - "github.com/sandstorm/synco/pkg/frameworks/laravelServe" + "github.com/sandstorm/synco/v2/pkg/common" + "github.com/sandstorm/synco/v2/pkg/frameworks/flowServe" + "github.com/sandstorm/synco/v2/pkg/frameworks/laravelServe" ) var RegisteredFrameworks = [...]common.ServeFramework{ diff --git a/pkg/serve/cmd/source-cmd.go b/pkg/serve/cmd/source-cmd.go index 7a1ecca..26fe533 100644 --- a/pkg/serve/cmd/source-cmd.go +++ b/pkg/serve/cmd/source-cmd.go @@ -2,8 +2,8 @@ package cmd import ( "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/serve" - "github.com/sandstorm/synco/pkg/util" + "github.com/sandstorm/synco/v2/pkg/serve" + "github.com/sandstorm/synco/v2/pkg/util" "github.com/spf13/cobra" "os" "os/signal" diff --git a/pkg/serve/transfer-session.go b/pkg/serve/transfer-session.go index ec666e3..46e38c9 100644 --- a/pkg/serve/transfer-session.go +++ b/pkg/serve/transfer-session.go @@ -5,7 +5,7 @@ import ( "filippo.io/age" "fmt" "github.com/pterm/pterm" - "github.com/sandstorm/synco/pkg/common/dto" + "github.com/sandstorm/synco/v2/pkg/common/dto" "io" "net/http" "os" diff --git a/pkg/util/mysql/mysqldump.go b/pkg/util/mysql/mysqldump.go index cfcb80e..266c9a8 100644 --- a/pkg/util/mysql/mysqldump.go +++ b/pkg/util/mysql/mysqldump.go @@ -4,8 +4,8 @@ import ( "database/sql" "fmt" "github.com/go-sql-driver/mysql" - "github.com/sandstorm/synco/pkg/common" - mysqldump "github.com/sandstorm/synco/pkg/util/mysql/go_mysqldump" + "github.com/sandstorm/synco/v2/pkg/common" + mysqldump "github.com/sandstorm/synco/v2/pkg/util/mysql/go_mysqldump" "io" ) diff --git a/test_e2e/flowframework_test.go b/test_e2e/flowframework_test.go index 51512e7..1d1f1c1 100644 --- a/test_e2e/flowframework_test.go +++ b/test_e2e/flowframework_test.go @@ -3,7 +3,7 @@ package test_e2e import ( "github.com/orlangure/gnomock" "github.com/orlangure/gnomock/preset/mariadb" - "github.com/sandstorm/synco/cmd" + "github.com/sandstorm/synco/v2/cmd" "io/ioutil" "os" "strconv"