Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

I got errors when install lint #169

Closed
xiangjihan opened this issue Oct 29, 2015 · 1 comment
Closed

I got errors when install lint #169

xiangjihan opened this issue Oct 29, 2015 · 1 comment

Comments

@xiangjihan
Copy link

Commands and errors(I wanna install lint to global environment):
[root@localhost ~]# go get github.com/golang/lint
/usr/share/gocode/src/github.com/golang/lint/lint.go:1496:16: 错误:reference to undefined field or method ‘Type’
if b, ok := tv.Type.(*types.Basic); ok {
^
/usr/share/gocode/src/github.com/golang/lint/lint.go:1492:19: 错误:function result count mismatch
tv, err := types.Eval(f.fset, f.pkg.typesPkg, expr.Pos(), exprStr)
OS:Fedora 23 VMwrea 12 pro
Go version :go1.4.2 gccgo (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) linux/amd64
My golang envs:
GOARCH="amd64"
GOBIN="/usr/lib/golang/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/share/gocode"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/libexec/gcc/x86_64-redhat-linux/5.1.1"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"
What can I do to solve this issue?

@dsymonds
Copy link
Contributor

You have out of date dependencies. Run go get -u github.com/golang/lint instead.

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

No branches or pull requests

2 participants