diff --git a/Makefile b/Makefile index fd05d37b9..3e39e3094 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,6 @@ docs: .PHONY: update-golden update-golden: TESTFLAGS += -update -v -update-golden: PKG = github.com/ian-howell/airshipctl/cmd/... +update-golden: PKG = opendev.org/airship/airshipctl/cmd/... update-golden: @GO111MODULE=on go test $(PKG) $(TESTFLAGS) diff --git a/README.md b/README.md index 6caff8711..f1f33f148 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ go mod init example Note that modules are a relatively new feature added to Go, so you'll need to be running Go1.11 or greater. Also note that most modules will follow a naming schema that matches the remote version control system. A more realistice module -name might look something like `github.com/ian-howell/exampleplugin`. +name might look something like `opendev.org/airship/exampleplugin`. Next, create a file `main.go` and populate it with the following: ```go @@ -30,7 +30,7 @@ import ( "fmt" "os" - "github.com/ian-howell/airshipctl/cmd" + "opendev.org/airship/airshipctl/cmd" "github.com/spf13/cobra" ) diff --git a/cmd/bootstrap/bootstrap.go b/cmd/bootstrap/bootstrap.go index 8d8a907c4..4e8e2e46a 100644 --- a/cmd/bootstrap/bootstrap.go +++ b/cmd/bootstrap/bootstrap.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/ian-howell/airshipctl/pkg/environment" + "opendev.org/airship/airshipctl/pkg/environment" ) // PluginSettingsID is used as a key in the root settings map of plugin settings diff --git a/cmd/root.go b/cmd/root.go index be8c7808d..8d892b805 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,10 +12,10 @@ import ( // Import to initialize client auth plugins. _ "k8s.io/client-go/plugin/pkg/client/auth" - "github.com/ian-howell/airshipctl/cmd/bootstrap" - "github.com/ian-howell/airshipctl/cmd/completion" - "github.com/ian-howell/airshipctl/pkg/environment" - "github.com/ian-howell/airshipctl/pkg/log" + "opendev.org/airship/airshipctl/cmd/bootstrap" + "opendev.org/airship/airshipctl/cmd/completion" + "opendev.org/airship/airshipctl/pkg/environment" + "opendev.org/airship/airshipctl/pkg/log" ) // NewAirshipCTLCommand creates a root `airshipctl` command with the default commands attached diff --git a/cmd/root_test.go b/cmd/root_test.go index 7cbb43cc4..7e672d581 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -3,8 +3,8 @@ package cmd_test import ( "testing" - "github.com/ian-howell/airshipctl/cmd" - "github.com/ian-howell/airshipctl/test" + "opendev.org/airship/airshipctl/cmd" + "opendev.org/airship/airshipctl/test" ) func TestRoot(t *testing.T) { diff --git a/cmd/version.go b/cmd/version.go index b5ca53efe..1fe759a00 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/ian-howell/airshipctl/pkg/util" + "opendev.org/airship/airshipctl/pkg/util" ) // NewVersionCommand prints out the versions of airshipctl and its underlying tools diff --git a/cmd/version_test.go b/cmd/version_test.go index f23438221..b6c9b89a7 100644 --- a/cmd/version_test.go +++ b/cmd/version_test.go @@ -3,8 +3,8 @@ package cmd_test import ( "testing" - "github.com/ian-howell/airshipctl/cmd" - "github.com/ian-howell/airshipctl/test" + "opendev.org/airship/airshipctl/cmd" + "opendev.org/airship/airshipctl/test" ) func TestVersion(t *testing.T) { diff --git a/docs/plugins.md b/docs/plugins.md index 3dce3cd46..be5719501 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -31,7 +31,7 @@ package main import ( "os" - "github.com/ian-howell/airshipctl/cmd" + "opendev.org/airship/airshipctl/cmd" ) func main() { @@ -99,7 +99,7 @@ package main import ( "fmt" "os" - "github.com/ian-howell/airshipctl/cmd" + "opendev.org/airship/airshipctl/cmd" "github.com/spf13/cobra" ) @@ -148,8 +148,8 @@ package main import ( "os" - "github.com/ian-howell/airshipctl/cmd" - "github.com/ian-howell/airshipctl/cmd/bootstrap" + "opendev.org/airship/airshipctl/cmd" + "opendev.org/airship/airshipctl/cmd/bootstrap" ) func main() { @@ -184,8 +184,8 @@ package main import ( "fmt" "os" - "github.com/ian-howell/airshipctl/cmd" - "github.com/ian-howell/airshipctl/pkg/environment" + "opendev.org/airship/airshipctl/cmd" + "opendev.org/airship/airshipctl/pkg/environment" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index fecade4e1..04b7ae7eb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ian-howell/airshipctl +module opendev.org/airship/airshipctl go 1.12 diff --git a/main.go b/main.go index 51f0ac110..2fe21aaad 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/ian-howell/airshipctl/cmd" + "opendev.org/airship/airshipctl/cmd" ) func main() { diff --git a/pkg/log/log_test.go b/pkg/log/log_test.go index b47749522..530c05ebb 100644 --- a/pkg/log/log_test.go +++ b/pkg/log/log_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/ian-howell/airshipctl/pkg/log" + "opendev.org/airship/airshipctl/pkg/log" ) const notEqualFmt = `Output does not match expected