glide icon indicating copy to clipboard operation
glide copied to clipboard

Cannot find package "." while updating k8s.io/client-go

Open rcorre opened this issue 8 years ago • 7 comments

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.

rcorre avatar Nov 20 '17 19:11 rcorre

This is happening to me as well

prithviramesh avatar Dec 14 '17 07:12 prithviramesh

I also encountered the same problem.

hansedong avatar Jan 29 '18 07:01 hansedong

Same here

denniswebb avatar Mar 07 '18 20:03 denniswebb

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

iawia002 avatar Mar 18 '18 06:03 iawia002

Still getting this problem.

theobarberbany avatar Jun 14 '18 11:06 theobarberbany

Is there any solution?

soulseen avatar Aug 18 '19 14:08 soulseen

same Here Is there any solution?

kumarabie avatar Oct 22 '19 10:10 kumarabie