Rename module to reflect its new location
Change-Id: I5c8c524c4d3f569b21b5b829722b3c49952cb0ab
This commit is contained in:
parent
d6b06a8787
commit
6e41a56a7d
2
Makefile
2
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)
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/ian-howell/airshipctl
|
||||
module opendev.org/airship/airshipctl
|
||||
|
||||
go 1.12
|
||||
|
||||
|
2
main.go
2
main.go
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/ian-howell/airshipctl/cmd"
|
||||
"opendev.org/airship/airshipctl/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user