Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 541 forks source link

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

Open rcorre opened 6 years ago

rcorre commented 6 years ago

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 commented 6 years ago

This is happening to me as well

hansedong commented 6 years ago

I also encountered the same problem.

denniswebb commented 6 years ago

Same here

iawia002 commented 6 years ago

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 commented 6 years ago

Still getting this problem.

soulseen commented 5 years ago

Is there any solution?

kumarabie commented 4 years ago

same Here Is there any solution?