From 8bbbe329295bf0f430b82abe9da1990adb12bbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 10 Sep 2019 14:49:58 +0100 Subject: [PATCH] all: rename the module to support v2 versions Before this change, @latest and specific versions like @v2.4.29 would fail with module-aware go get, as the module was a v0/v1 instead of the expected v2. Amend the go.mod and all the imports. This is just the first step; to make @latest fully work, we'll need to also release a new tagged version, and verify that it works. While at it, update and simplify the 'go get' instructions in the README. For #30. --- README.md | 6 +++--- cmd/auth.go | 2 +- cmd/create.go | 2 +- cmd/download.go | 2 +- cmd/get.go | 2 +- cmd/job.go | 2 +- cmd/root.go | 2 +- cmd/run.go | 2 +- cmd/target.go | 2 +- go.mod | 2 +- main.go | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 95060ef..2868938 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,12 @@ or via wget https://github.com/fuzzitdev/fuzzit/releases/download//fuzzit___ ``` -#### Go Get +#### Go get -Also, you can use the following command to download and compile (This usually takes some time so, it's usually faster to either download a pre-compiled release or download the source and build locally): +You can also use Go 1.12 or later to build the latest stable version from source: ```bash -go get -v -u github.com/fuzzitdev/fuzzit +GO111MODULE=on go get github.com/fuzzitdev/fuzzit/v2 ``` #### Homebrew Tap diff --git a/cmd/auth.go b/cmd/auth.go index a6297f1..c0a669b 100644 --- a/cmd/auth.go +++ b/cmd/auth.go @@ -19,7 +19,7 @@ package cmd import ( "log" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" ) diff --git a/cmd/create.go b/cmd/create.go index 0e2c155..51d6f06 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -18,7 +18,7 @@ package cmd import ( "log" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/download.go b/cmd/download.go index 23845e7..fb539c4 100644 --- a/cmd/download.go +++ b/cmd/download.go @@ -19,7 +19,7 @@ import ( "log" "strings" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" ) diff --git a/cmd/get.go b/cmd/get.go index d153350..64803e0 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -18,7 +18,7 @@ package cmd import ( "log" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/job.go b/cmd/job.go index ce296bc..fbb7252 100644 --- a/cmd/job.go +++ b/cmd/job.go @@ -19,7 +19,7 @@ import ( "log" "strings" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" "gopkg.in/src-d/go-git.v4" ) diff --git a/cmd/root.go b/cmd/root.go index 0d7c3af..77ecc9e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -21,7 +21,7 @@ import ( "os" "strings" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/run.go b/cmd/run.go index fd27b21..37e38ff 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -18,7 +18,7 @@ package cmd import ( "fmt" - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "github.com/spf13/cobra" "github.com/spf13/viper" "log" diff --git a/cmd/target.go b/cmd/target.go index ce3493c..517f3d4 100644 --- a/cmd/target.go +++ b/cmd/target.go @@ -16,7 +16,7 @@ limitations under the License. package cmd import ( - "github.com/fuzzitdev/fuzzit/client" + "github.com/fuzzitdev/fuzzit/v2/client" "log" "github.com/spf13/cobra" diff --git a/go.mod b/go.mod index c6a9dae..88cea66 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/fuzzitdev/fuzzit +module github.com/fuzzitdev/fuzzit/v2 go 1.12 diff --git a/main.go b/main.go index 4f570fa..0921542 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ limitations under the License. package main import ( - "github.com/fuzzitdev/fuzzit/cmd" + "github.com/fuzzitdev/fuzzit/v2/cmd" ) func main() {