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 ?
本文标签:
版权声明:本文标题:go get - go get golang.orgxlintgolint fail:found packages gcimporter (bexport_test.go) and main (main.go) in ~gosrcgolang.orgxto 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741578282a2386418.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论