Skip to content

Commit

Permalink
feat: add compatibility with dep
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
alex1989hu committed Jan 27, 2020
1 parent 8e9aba0 commit 7e9187c
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 0 deletions.
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 7e9187c

Please sign in to comment.