luan / vimfiles

The Vim Configuration. Uses vim-plug to manage plugins.
172 stars 58 forks source link

Lots of (possibly bad) output when installing go binaries #76

Closed robdimsdale closed 7 years ago

robdimsdale commented 7 years ago

On ubuntu: (Linux yeti 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux). When running the ./install script, I see the output below from the golang binaries section.

The exit code was 0 so I don't know if this is a problem, but it looks unexpected.

INSTALL go binaries (may take a while)...

Installing:
gosimple
gotype
varcheck
errcheck
gas
goconst
goimports
golint
interfacer
misspell
structcheck
unconvert
aligncheck
dupl
gocyclo
lll
unused
deadcode
ineffassign
staticcheck
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install one or more linters: exit status 2 (installing individually)
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install honnef.co/go/simple/cmd/gosimple: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install golang.org/x/tools/cmd/gotype: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/opennota/check/cmd/varcheck: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/kisielk/errcheck: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/HewlettPackard/gas: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/jgautheron/goconst/cmd/goconst: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install golang.org/x/tools/cmd/goimports: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/golang/lint/golint: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/mvdan/interfacer/cmd/interfacer: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/client9/misspell/cmd/misspell: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/opennota/check/cmd/structcheck: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/mdempsky/unconvert: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/opennota/check/cmd/aligncheck: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/mibk/dupl: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/alecthomas/gocyclo: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/walle/lll/cmd/lll: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install honnef.co/go/unused/cmd/unused: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/tsenart/deadcode: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install github.com/gordonklaus/ineffassign: exit status 2
flag provided but not defined: -u
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
WARNING: failed to install honnef.co/go/staticcheck/cmd/staticcheck: exit status 2
gometalinter: error: failed to install the following linters: honnef.co/go/simple/cmd/gosimple, golang.org/x/tools/cmd/gotype, github.com/opennota/check/cmd/varcheck, github.com/kisielk/errcheck, github.com/HewlettPackard/gas, github.com/jgautheron/goconst/cmd/goconst, golang.org/x/tools/cmd/goimports, github.com/golang/lint/golint, github.com/mvdan/interfacer/cmd/interfacer, github.com/client9/misspell/cmd/misspell, github.com/opennota/check/cmd/structcheck, github.com/mdempsky/unconvert, github.com/opennota/check/cmd/aligncheck, github.com/mibk/dupl, github.com/alecthomas/gocyclo, github.com/walle/lll/cmd/lll, honnef.co/go/unused/cmd/unused, github.com/tsenart/deadcode, github.com/gordonklaus/ineffassign, honnef.co/go/staticcheck/cmd/staticcheck
DONE go binaries
luan commented 7 years ago

What version of go do you have on this machine?

robdimsdale commented 7 years ago

1.7.3 but when i just ran git pull && ./install it seems to be working fine now. I did not change the version of go nor do anything like rm -rf $GOPATH/pkg $GOPATH/bin. I'm not sure why the behavior changed.

luan commented 7 years ago

Humm. The output you pasted before seems to point to go get not having the -u flag, which doesn't make a lot of sense, unless you somehow have a broken go get.

If you feel like this is resolved feel free to close the issue at your convenience, otherwise we should try to find a way to reproduce this.

robdimsdale commented 7 years ago

Huh. I don't know so I'll close this issue now. Thanks for taking the time to dig into it.