admin管理员组

文章数量:1293314

I'm trying to get golang/x/lint/golint because I need to build this old rancher cli v0.6.14 Dockerfile.

Unfortunately the current rancher/cli2 image fails to login on our old Rancher v1.6).

I pointed the debian repos from this file to archive.debian and removed the updates repos from /etc/apt/sources.list for the command apt-get update to work.

Now the docker build fails on getting the golang/x/lint/golint part so I tried to typed the go get ... command interactively :

$ export GOPATH=$HOME/go
$ go get golang/x/lint/golint
../go/src/golang/x/tools/go/gcexportdata/gcexportdata.go:74:2: found packages gcimporter (bexport_test.go) and main (main.go) in /home/myUSER/go/src/golang/x/tools/internal/gcimporter
$ echo $?
1
$

I also tried this (taken from here) :

$ mkdir -p $GOPATH/src/golang/x
$ git clone .git $GOPATH/src/golang/x/lint
Cloning into '/home/myUSER/go/src/golang/x/lint'...
remote: Enumerating objects: 786, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 786 (delta 2), reused 4 (delta 2), pack-reused 780 (from 1)
Receiving objects: 100% (786/786), 358.40 KiB | 7.17 MiB/s, done.
Resolving deltas: 100% (460/460), done.
$ go get -u golang/x/lint/golint
package golang/x/lint: golang/x/lint is a custom import path for , but /home/myUSER/go/src/golang/x/lint is checked out from .git
$ echo $?
1
$

How can I make this work ?

本文标签: