Skip to content

Commit

Permalink
add /v2 module suffix to be compatible with Go semantic import versio…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
dmgk committed Jan 15, 2021
1 parent 623fcc9 commit 799e311
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ or from ports:

To install latest dev version directly from GitHub:

go get github.com/dmgk/modules2tuple
go get github.com/dmgk/modules2tuple/v2

#### Usage

Expand Down
2 changes: 1 addition & 1 deletion apis/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

type GithubCommit struct {
Expand Down
2 changes: 1 addition & 1 deletion debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

func Print(v ...interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dmgk/modules2tuple
module github.com/dmgk/modules2tuple/v2

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"path"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/parser"
"github.com/dmgk/modules2tuple/v2/config"
"github.com/dmgk/modules2tuple/v2/parser"
)

var version = "devel"
Expand Down
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"sync"

"github.com/dmgk/modules2tuple/tuple"
"github.com/dmgk/modules2tuple/v2/tuple"
)

// Load parses tuples from vendor/modules.txt at path.
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_offline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package parser

import "github.com/dmgk/modules2tuple/config"
import "github.com/dmgk/modules2tuple/v2/config"

func init() {
config.Offline = true
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_online_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

func TestReader(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions tuple/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"regexp"
"strings"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/debug"
"github.com/dmgk/modules2tuple/v2/config"
"github.com/dmgk/modules2tuple/v2/debug"
)

type SourceError string
Expand Down
2 changes: 1 addition & 1 deletion tuple/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

func init() {
Expand Down
6 changes: 3 additions & 3 deletions tuple/tuple.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"sort"
"strings"

"github.com/dmgk/modules2tuple/apis"
"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/debug"
"github.com/dmgk/modules2tuple/v2/apis"
"github.com/dmgk/modules2tuple/v2/config"
"github.com/dmgk/modules2tuple/v2/debug"
)

// Parse parses a package spec into Tuple.
Expand Down
2 changes: 1 addition & 1 deletion tuple/tuple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/dmgk/modules2tuple/config"
"github.com/dmgk/modules2tuple/v2/config"
)

func init() {
Expand Down

0 comments on commit 799e311

Please sign in to comment.