Skip to content

Commit

Permalink
add compatibility with dep for semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
u2takey committed Feb 12, 2020
1 parent d95486f commit 7ac59bc
Show file tree
Hide file tree
Showing 30 changed files with 50 additions and 12 deletions.
2 changes: 1 addition & 1 deletion allocator/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package allocator // import "sigs.k8s.io/sig-storage-lib-external-provisioner/allocator"
package allocator // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/allocator"
4 changes: 2 additions & 2 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import (
ref "k8s.io/client-go/tools/reference"
"k8s.io/client-go/util/workqueue"
glog "k8s.io/klog"
"sigs.k8s.io/sig-storage-lib-external-provisioner/controller/metrics"
"sigs.k8s.io/sig-storage-lib-external-provisioner/util"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller/metrics"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/util"
)

// annClass annotation represents the storage class associated with a resource:
Expand Down
2 changes: 1 addition & 1 deletion controller/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package controller // import "sigs.k8s.io/sig-storage-lib-external-provisioner/controller"
package controller // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller"
2 changes: 1 addition & 1 deletion controller/metrics/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package metrics // import "sigs.k8s.io/sig-storage-lib-external-provisioner/controller/metrics"
package metrics // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller/metrics"
2 changes: 1 addition & 1 deletion gidallocator/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package gidallocator // import "sigs.k8s.io/sig-storage-lib-external-provisioner/gidallocator"
package gidallocator // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/gidallocator"
6 changes: 3 additions & 3 deletions gidallocator/gidallocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
glog "k8s.io/klog"
"sigs.k8s.io/sig-storage-lib-external-provisioner/allocator"
"sigs.k8s.io/sig-storage-lib-external-provisioner/controller"
"sigs.k8s.io/sig-storage-lib-external-provisioner/util"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/allocator"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/controller"
"sigs.k8s.io/sig-storage-lib-external-provisioner/v5/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module sigs.k8s.io/sig-storage-lib-external-provisioner
module sigs.k8s.io/sig-storage-lib-external-provisioner/v5

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion mount/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package mount // import "sigs.k8s.io/sig-storage-lib-external-provisioner/mount"
package mount // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/mount"
2 changes: 1 addition & 1 deletion util/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package util // import "sigs.k8s.io/sig-storage-lib-external-provisioner/util"
package util // import "sigs.k8s.io/sig-storage-lib-external-provisioner/v5/util"
18 changes: 18 additions & 0 deletions v5/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 v5.x releases of
sig-storage-lib-external-provisioner 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 sig-storage-lib-external-provisioner in their Gopk.toml, like this:

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

[[prune.project]]
name = "sigs.k8s.io/sig-storage-lib-external-provisioner"
unused-packages = false
```
1 change: 1 addition & 0 deletions v5/allocator/doc.go
1 change: 1 addition & 0 deletions v5/allocator/minmax.go
1 change: 1 addition & 0 deletions v5/allocator/minmax_test.go
1 change: 1 addition & 0 deletions v5/controller/controller.go
1 change: 1 addition & 0 deletions v5/controller/controller_test.go
1 change: 1 addition & 0 deletions v5/controller/doc.go
1 change: 1 addition & 0 deletions v5/controller/metrics/doc.go
1 change: 1 addition & 0 deletions v5/controller/metrics/metrics.go
1 change: 1 addition & 0 deletions v5/controller/volume.go
1 change: 1 addition & 0 deletions v5/controller/volume_store.go
1 change: 1 addition & 0 deletions v5/gidallocator/doc.go
1 change: 1 addition & 0 deletions v5/gidallocator/gidallocator.go
1 change: 1 addition & 0 deletions v5/mount/LICENSE
1 change: 1 addition & 0 deletions v5/mount/doc.go
1 change: 1 addition & 0 deletions v5/mount/mount.go
1 change: 1 addition & 0 deletions v5/mount/mountinfo.go
1 change: 1 addition & 0 deletions v5/mount/mountinfo_linux.go
1 change: 1 addition & 0 deletions v5/mount/mountinfo_unsupported.go
1 change: 1 addition & 0 deletions v5/util/doc.go
1 change: 1 addition & 0 deletions v5/util/util.go

0 comments on commit 7ac59bc

Please sign in to comment.