Skip to content

Commit 400a290

Browse files
authored
Add v2 version support for makezero module (#18)
Following the release policy at https://go.dev/wiki/Modules#releasing-modules-v2-or-higher Starting with version 2.x need support to pull module, ``` go get -u github.com/ashanbrown/makezero/v2 ``` Even pkg docs points v1.2.0 https://pkg.go.dev/github.com/ashanbrown/makezero Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
1 parent 47b5f74 commit 400a290

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ashanbrown/makezero
1+
module github.com/ashanbrown/makezero/v2
22

33
go 1.18
44

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"golang.org/x/tools/go/packages"
1010

11-
"github.com/ashanbrown/makezero/makezero"
11+
"github.com/ashanbrown/makezero/v2/makezero"
1212
)
1313

1414
func main() {

pkg/analyzer/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"go/ast"
66

7-
"github.com/ashanbrown/makezero/makezero"
7+
"github.com/ashanbrown/makezero/v2/makezero"
88
"golang.org/x/tools/go/analysis"
99
)
1010

pkg/analyzer/analyzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package analyzer_test
33
import (
44
"testing"
55

6-
"github.com/ashanbrown/makezero/pkg/analyzer"
6+
"github.com/ashanbrown/makezero/v2/pkg/analyzer"
77
"golang.org/x/tools/go/analysis/analysistest"
88
)
99

0 commit comments

Comments
 (0)