2

My goproxy config: https://goproxy.cn,direct

When I try to: go get k8s.io/kubernetes/pkg/scheduler/framework And then show error: go: k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: git ls-remote -q origin

Whow should I do?

At the same time, I found that the k8s code cannot be pulled by using go get. How should I solve it? Please help!

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Shyunn
  • 23
  • 3
  • `go get` accepts a module path. The module path is `k8s.io/kubernetes`. What happen if you run `go get k8s.io/kubernetes`? – Zeke Lu May 15 '23 at 12:50
  • That's bad.It just seems to be stuck there, I'm guessing it's timed out, but I really don't know how to fix it. – Shyunn May 16 '23 at 07:26
  • Can you run the command with the `-x` flag and share the output? `go get -x k8s.io/kubernetes` – Zeke Lu May 16 '23 at 07:35
  • When I run command `go get -x k8s.io/kubernetes`,And then: `go: k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: git ls-remote -q origin ` – Shyunn May 16 '23 at 12:41

0 Answers0