Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#209 from alex1989hu/fix/gomod-v2-pa…
Browse files Browse the repository at this point in the history
…ckage

fix: go module requirements for semantic versioning
  • Loading branch information
k8s-ci-robot committed Jan 28, 2020
2 parents 865b69d + 7e9187c commit 57193d7
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cmd/csi-attacher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import (
"github.com/kubernetes-csi/csi-lib-utils/leaderelection"
"github.com/kubernetes-csi/csi-lib-utils/metrics"
"github.com/kubernetes-csi/csi-lib-utils/rpc"
"github.com/kubernetes-csi/external-attacher/pkg/attacher"
"github.com/kubernetes-csi/external-attacher/pkg/controller"
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
"github.com/kubernetes-csi/external-attacher/v2/pkg/controller"
"google.golang.org/grpc"
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubernetes-csi/external-attacher
module github.com/kubernetes-csi/external-attacher/v2

go 1.12
go 1.13

require (
github.com/container-storage-interface/spec v1.2.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/csi_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"k8s.io/klog"

"github.com/kubernetes-csi/external-attacher/pkg/attacher"
"github.com/kubernetes-csi/external-attacher/v2/pkg/attacher"
v1 "k8s.io/api/core/v1"
storage "k8s.io/api/storage/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/csi_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"
"time"

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

v1 "k8s.io/api/core/v1"
storage "k8s.io/api/storage/v1beta1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/framework_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

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

v1 "k8s.io/api/core/v1"
storage "k8s.io/api/storage/v1beta1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/trivial_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"errors"
"testing"

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

storage "k8s.io/api/storage/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
18 changes: 18 additions & 0 deletions v2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This directory mirrors the source code via symlinks.
This makes it possible to vendor v2.x releases of
external-attacher with `dep` versions that do not
support semantic imports. Support for that is currently
[pending in dep](https://github.com/golang/dep/pull/1963).

If users of dep have enabled pruning, they must disable if
for external-attacher in their Gopk.toml, like this:

```toml
[prune]
go-tests = true
unused-packages = true

[[prune.project]]
name = "github.com/kubernetes-csi/external-attacher"
unused-packages = false
```
1 change: 1 addition & 0 deletions v2/cmd/csi-attacher/main.go
1 change: 1 addition & 0 deletions v2/pkg/attacher/attacher.go
1 change: 1 addition & 0 deletions v2/pkg/attacher/attacher_test.go
1 change: 1 addition & 0 deletions v2/pkg/attacher/lister.go
1 change: 1 addition & 0 deletions v2/pkg/controller/controller.go
1 change: 1 addition & 0 deletions v2/pkg/controller/controller_test.go
1 change: 1 addition & 0 deletions v2/pkg/controller/csi_handler.go
1 change: 1 addition & 0 deletions v2/pkg/controller/csi_handler_test.go
1 change: 1 addition & 0 deletions v2/pkg/controller/framework_test.go
1 change: 1 addition & 0 deletions v2/pkg/controller/trivial_handler.go
1 change: 1 addition & 0 deletions v2/pkg/controller/trivial_handler_test.go
1 change: 1 addition & 0 deletions v2/pkg/controller/util.go
1 change: 1 addition & 0 deletions v2/pkg/controller/util_test.go

0 comments on commit 57193d7

Please sign in to comment.