Skip to content

Commit 7e9187c

Browse files
committed
feat: add compatibility with dep
This commit adds the compatibility with dep (Go dependency management tool) via symlink creation (same method applied in kubernetes-csi/csi-test) Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
1 parent 8e9aba0 commit 7e9187c

File tree

14 files changed

+31
-0
lines changed

14 files changed

+31
-0
lines changed

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)