Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rcorre opened this issue Nov 20, 2017 · 7 comments
Open

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

rcorre opened this issue Nov 20, 2017 · 7 comments

Comments

@rcorre
Copy link

rcorre commented Nov 20, 2017

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.

@prithviramesh
Copy link

This is happening to me as well

@hansedong
Copy link

I also encountered the same problem.

@denniswebb
Copy link

Same here

@iawia002
Copy link

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

@theobarberbany
Copy link

Still getting this problem.

@soulseen
Copy link

Is there any solution?

@kumarabie
Copy link

same Here
Is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants