fix: go module requirements for semantic versioning

This commit also adds the compatibility with dep (Go dependency
management tool) via symlink creation (same method applied in
kubernetes-csi/csi-test)

TODO: fix hack/update-generated-code.sh

Fixes issue #239.

Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
This commit is contained in:
Alex Szakaly
2020-01-22 09:50:01 +01:00
parent 0b24a7321e
commit fb6225dc41
99 changed files with 169 additions and 93 deletions

18
v2/README.md Normal file
View File

@@ -0,0 +1,18 @@
This directory mirrors the source code via symlinks.
This makes it possible to vendor v2.x releases of
external-snapshotter 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-snapshotter in their Gopk.toml, like this:
```toml
[prune]
go-tests = true
unused-packages = true
[[prune.project]]
name = "github.com/kubernetes-csi/external-snapshotter"
unused-packages = false
```