This repository was archived by the owner on Apr 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 266
This repository was archived by the owner on Apr 10, 2019. It is now read-only.
--vendor flag doesn't work (sometimes) #467
Copy link
Copy link
Closed
Description
To reproduce:
rm -rf $GOPATH/src/github.com/alecthomas/gometalinter
go get -u github.com/alecthomas/gometalinter
cd $GOPATH/src/github.com/alecthomas/gometalinter
gometalinter --debug -v --vendor ./...
this is (part of) the debug output:
gometalinter --debug --vendor ./...
DEBUG: [Apr 28 09:44:05.777] PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/timfeirg/gocode/bin:/usr/local/opt/fzf/bin:/Users/timfeirg/.rvm/bin
DEBUG: [Apr 28 09:44:05.777] GOPATH=/Users/timfeirg/gocode
DEBUG: [Apr 28 09:44:05.777] GOBIN=
DEBUG: [Apr 28 09:44:05.778] linting path .
DEBUG: [Apr 28 09:44:05.778] linting path ./regressiontests
DEBUG: [Apr 28 09:44:05.783] [megacheck.1]: executing /Users/timfeirg/gocode/bin/megacheck . ./regressiontests
DEBUG: [Apr 28 09:44:05.787] [errcheck.2]: executing /Users/timfeirg/gocode/bin/errcheck -abspath -ignoretests . ./regressiontests
DEBUG: [Apr 28 09:44:05.793] [vet.4]: executing /usr/local/bin/go vet . ./regressiontests
DEBUG: [Apr 28 09:44:05.801] [golint.3]: executing /Users/timfeirg/gocode/bin/golint -min_confidence 0.800000 . ./regressiontests
DEBUG: [Apr 28 09:44:06.066] [errcheck.2]: warning: /Users/timfeirg/gocode/bin/errcheck returned exit status 2: /Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:43:2: could not import bufio (cannot find package "bufio" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/bufio (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/bufio (from $GOROOT)
/Users/timfeirg/gocode/src/bufio (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:44:2: could not import fmt (cannot find package "fmt" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/fmt (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/fmt (from $GOROOT)
/Users/timfeirg/gocode/src/fmt (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:45:2: could not import io (cannot find package "io" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/io (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/io (from $GOROOT)
/Users/timfeirg/gocode/src/io (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:46:2: could not import strings (cannot find package "strings" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/strings (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/strings (from $GOROOT)
/Users/timfeirg/gocode/src/strings (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:171:13: undeclared name: bufio
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:145:17: undeclared name: io
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:176:21: undeclared name: io
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:195:22: invalid operation: t.input (variable with invalid type) has no field or method ReadRune
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:198:13: undeclared name: io
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:211:19: undeclared name: io
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:256:7: invalid operation: t.input (variable with invalid type) has no field or method UnreadRune
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:285:13: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:303:13: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:321:13: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:346:13: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:392:17: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:164:15: undeclared name: fmt
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:177:11: undeclared name: bufio
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:405:16: undeclared name: strings
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/google/shlex/shlex.go:410:14: undeclared name: io
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/alecthomas/units/util.go:4:2: could not import errors (cannot find package "errors" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/errors (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/errors (from $GOROOT)
/Users/timfeirg/gocode/src/errors (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/alecthomas/units/util.go:5:2: could not import fmt (cannot find package "fmt" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/fmt (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/fmt (from $GOROOT)
/Users/timfeirg/gocode/src/fmt (from $GOPATH))
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/github.com/alecthomas/units/util.go:6:2: could not import strings (cannot find package "strings" in any of:
/Users/timfeirg/gocode/src/github.com/alecthomas/gometalinter/vendor/strings (vendor tree)
/usr/local/Cellar/go/1.8.3/libexec/src/strings (from $GOROOT)
/Users/timfeirg/gocode/src/strings (from $GOPATH))
Metadata
Metadata
Assignees
Labels
No labels