dep ensure -update problem
iyurev opened this issue · 4 comments
Good day!
Do you can remove commented line: // import "sigs.k8s.io/sig-storage-lib-external-provisioner/controller"
in doc.go
package controller . ??
Or explain what I do wrong?? ))
When I try run: dep ensure -update -v
it raises exception:
Solving failure: No versions of github.com/kubernetes-sigs/sig-storage-lib-external-provisioner met constraints:
v4.0.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v4.0.0, ****as its subpackage github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/controller does not contain usable Go code** (*pkgtree.NonCanonicalImportRoot)..** (Package is required by (root).)
v3.1.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v3.1.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
v3.0.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v3.0.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
v2.2.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v2.2.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
v2.1.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v2.1.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
v2.0.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v2.0.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
v1.0.0: Could not introduce github.com/kubernetes-sigs/sig-storage-lib-external-provisioner@v1.0.0, as it is not allowed by constraint ^4.0.0 from project github.com/iyurev/dell_compellent_fluidfs_provisioner.
For test I used fork of this repository ( https://github.com/iyurev/sig-storage-lib-external-provisioner/blob/master/controller/doc.go ) with patched doc.go and it worked OK .
I wonder why no one answers.
I get the same problem
It did work with the old
Import in Gopkg.toml
[[constraint]]
name = "github.com/kubernetes-sigs/sig-storage-lib-external-provisioner"
version = "v4.0.1"
Import in go file
"github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/controller"
It did work before with
[[constraint]]
name = "github.com/kubernetes-incubator/external-storage"
version = "v5.2.0"
and
"github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/controller"
@iyurev I looked into the example folder and saw the following:
Do in the Gopkg.toml
[[constraint]]
name = "sigs.k8s.io/sig-storage-lib-external-provisioner"
version = "v4.0.1"
and in your go file
"sigs.k8s.io/sig-storage-lib-external-provisioner/controller"
as the import.
Don't use the github address.
Now it works here.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten