Rename module to reflect its new location

Change-Id: I5c8c524c4d3f569b21b5b829722b3c49952cb0ab
This commit is contained in:
Ian Howell 2019-06-25 16:31:11 -05:00
parent d6b06a8787
commit 6e41a56a7d
11 changed files with 22 additions and 22 deletions

View File

@ -66,6 +66,6 @@ docs:
.PHONY: update-golden .PHONY: update-golden
update-golden: TESTFLAGS += -update -v update-golden: TESTFLAGS += -update -v
update-golden: PKG = github.com/ian-howell/airshipctl/cmd/... update-golden: PKG = opendev.org/airship/airshipctl/cmd/...
update-golden: update-golden:
@GO111MODULE=on go test $(PKG) $(TESTFLAGS) @GO111MODULE=on go test $(PKG) $(TESTFLAGS)

View File

@ -20,7 +20,7 @@ go mod init example
Note that modules are a relatively new feature added to Go, so you'll need to 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 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 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: Next, create a file `main.go` and populate it with the following:
```go ```go
@ -30,7 +30,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "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 // PluginSettingsID is used as a key in the root settings map of plugin settings

View File

@ -12,10 +12,10 @@ import (
// Import to initialize client auth plugins. // Import to initialize client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth" _ "k8s.io/client-go/plugin/pkg/client/auth"
"github.com/ian-howell/airshipctl/cmd/bootstrap" "opendev.org/airship/airshipctl/cmd/bootstrap"
"github.com/ian-howell/airshipctl/cmd/completion" "opendev.org/airship/airshipctl/cmd/completion"
"github.com/ian-howell/airshipctl/pkg/environment" "opendev.org/airship/airshipctl/pkg/environment"
"github.com/ian-howell/airshipctl/pkg/log" "opendev.org/airship/airshipctl/pkg/log"
) )
// NewAirshipCTLCommand creates a root `airshipctl` command with the default commands attached // NewAirshipCTLCommand creates a root `airshipctl` command with the default commands attached

View File

@ -3,8 +3,8 @@ package cmd_test
import ( import (
"testing" "testing"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/ian-howell/airshipctl/test" "opendev.org/airship/airshipctl/test"
) )
func TestRoot(t *testing.T) { func TestRoot(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "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 // NewVersionCommand prints out the versions of airshipctl and its underlying tools

View File

@ -3,8 +3,8 @@ package cmd_test
import ( import (
"testing" "testing"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/ian-howell/airshipctl/test" "opendev.org/airship/airshipctl/test"
) )
func TestVersion(t *testing.T) { func TestVersion(t *testing.T) {

View File

@ -31,7 +31,7 @@ package main
import ( import (
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
) )
func main() { func main() {
@ -99,7 +99,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -148,8 +148,8 @@ package main
import ( import (
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/ian-howell/airshipctl/cmd/bootstrap" "opendev.org/airship/airshipctl/cmd/bootstrap"
) )
func main() { func main() {
@ -184,8 +184,8 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
"github.com/ian-howell/airshipctl/pkg/environment" "opendev.org/airship/airshipctl/pkg/environment"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/ian-howell/airshipctl module opendev.org/airship/airshipctl
go 1.12 go 1.12

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ian-howell/airshipctl/cmd" "opendev.org/airship/airshipctl/cmd"
) )
func main() { func main() {

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ian-howell/airshipctl/pkg/log" "opendev.org/airship/airshipctl/pkg/log"
) )
const notEqualFmt = `Output does not match expected const notEqualFmt = `Output does not match expected