glide
glide copied to clipboard
Cannot find package "." while updating k8s.io/client-go
I'm trying to bump client-go to 5.x, but glide up -v prints:
[ERROR] Error scanning k8s.io/client-go/pkg/apis/batch/v1: cannot find package "." in:
/home/rodencor/.glide/cache/src/https-k8s.io-client-go/pkg/apis/batch/v1
Minimal example:
glide.yaml:
package: github.com/rcorre/k8stest
import:
- package: k8s.io/client-go
version: 5.x.x
main.go:
package main
import (
"k8s.io/client-go/kubernetes"
batch "k8s.io/client-go/pkg/apis/batch/v1"
"k8s.io/client-go/rest"
)
func main() {
conf, err := rest.InClusterConfig()
if err != nil {
panic(err)
}
kube, err := kubernetes.NewForConfig(conf)
if err != nil {
panic(err)
}
var jobs []batch.Job
jobs, err := kube.BatchV1().Jobs(namespace).List(nil)
if err != nil {
panic(err)
}
}
I've tried rm -rf vendor and glide cc.
Let me know if this issue belongs on client-go instead.
This is happening to me as well
I also encountered the same problem.
Same here
Same here
[ERROR] Could not find /Users/mac/.glide/cache/src/https-golang.org-x-sys/unix: cannot find package "." in:
/Users/mac/.glide/cache/src/https--Users-mac-.glide-cache-src-https-golang.org-x-sys-unix
Still getting this problem.
Is there any solution?
same Here Is there any solution?