Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: rename the module to support v2 versions #39

Merged
merged 1 commit into from Sep 10, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

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.
  • Loading branch information
mvdan committed Sep 10, 2019
commit 8bbbe329295bf0f430b82abe9da1990adb12bbc9
@@ -22,12 +22,12 @@ or via
wget https://github.com/fuzzitdev/fuzzit/releases/download/<version>/fuzzit_<version>_<os>_<arch>
```

#### 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
@@ -19,7 +19,7 @@ package cmd
import (
"log"

"github.com/fuzzitdev/fuzzit/client"
"github.com/fuzzitdev/fuzzit/v2/client"
"github.com/spf13/cobra"
)

@@ -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"
)
@@ -19,7 +19,7 @@ import (
"log"
"strings"

"github.com/fuzzitdev/fuzzit/client"
"github.com/fuzzitdev/fuzzit/v2/client"
"github.com/spf13/cobra"
)

@@ -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"
)
@@ -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"
)
@@ -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"
)
@@ -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"
@@ -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"
2 go.mod
@@ -1,4 +1,4 @@
module github.com/fuzzitdev/fuzzit
module github.com/fuzzitdev/fuzzit/v2

go 1.12

@@ -17,7 +17,7 @@ limitations under the License.
package main

import (
"github.com/fuzzitdev/fuzzit/cmd"
"github.com/fuzzitdev/fuzzit/v2/cmd"
)

func main() {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.