Skip to content

Commit 57193d7

Browse files
authored
Merge pull request #209 from alex1989hu/fix/gomod-v2-package
fix: go module requirements for semantic versioning
2 parents 865b69d + 7e9187c commit 57193d7

20 files changed

+39
-8
lines changed

cmd/csi-attacher/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import (
3636
"github.com/kubernetes-csi/csi-lib-utils/leaderelection"
3737
"github.com/kubernetes-csi/csi-lib-utils/metrics"
3838
"github.com/kubernetes-csi/csi-lib-utils/rpc"
39-
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
40-
"github.com/kubernetes-csi/external-attacher/pkg/controller"
39+
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
40+
"github.com/kubernetes-csi/external-attacher/v2/pkg/controller"
4141
"google.golang.org/grpc"
4242
)
4343

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module github.com/kubernetes-csi/external-attacher
1+
module github.com/kubernetes-csi/external-attacher/v2
22

3-
go 1.12
3+
go 1.13
44

55
require (
66
github.com/container-storage-interface/spec v1.2.0

pkg/controller/csi_handler.go

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

2626
"k8s.io/klog"
2727

28-
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
28+
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
2929
v1 "k8s.io/api/core/v1"
3030
storage "k8s.io/api/storage/v1beta1"
3131
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

pkg/controller/csi_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"testing"
2323
"time"
2424

25-
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
25+
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
2626

2727
v1 "k8s.io/api/core/v1"
2828
storage "k8s.io/api/storage/v1beta1"

pkg/controller/framework_test.go

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

2828
"github.com/container-storage-interface/spec/lib/go/csi"
2929
"github.com/davecgh/go-spew/spew"
30-
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
30+
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
3131

3232
v1 "k8s.io/api/core/v1"
3333
storage "k8s.io/api/storage/v1beta1"

pkg/controller/trivial_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"errors"
2121
"testing"
2222

23-
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
23+
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
2424

2525
storage "k8s.io/api/storage/v1"
2626
apierrors "k8s.io/apimachinery/pkg/api/errors"

v2/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This directory mirrors the source code via symlinks.
2+
This makes it possible to vendor v2.x releases of
3+
external-attacher with `dep` versions that do not
4+
support semantic imports. Support for that is currently
5+
[pending in dep](https://github.com/golang/dep/pull/1963).
6+
7+
If users of dep have enabled pruning, they must disable if
8+
for external-attacher in their Gopk.toml, like this:
9+
10+
```toml
11+
[prune]
12+
go-tests = true
13+
unused-packages = true
14+
15+
[[prune.project]]
16+
name = "github.com/kubernetes-csi/external-attacher"
17+
unused-packages = false
18+
```

v2/cmd/csi-attacher/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../cmd/csi-attacher/main.go

v2/pkg/attacher/attacher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/attacher/attacher.go

v2/pkg/attacher/attacher_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/attacher/attacher_test.go

v2/pkg/attacher/lister.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/attacher/lister.go

v2/pkg/controller/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/controller.go

v2/pkg/controller/controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/controller_test.go

v2/pkg/controller/csi_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/csi_handler.go

v2/pkg/controller/csi_handler_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/csi_handler_test.go

v2/pkg/controller/framework_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/framework_test.go

v2/pkg/controller/trivial_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/trivial_handler.go
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/trivial_handler_test.go

v2/pkg/controller/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/util.go

v2/pkg/controller/util_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../pkg/controller/util_test.go

0 commit comments

Comments
 (0)