Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected module path #436

Closed
bill-rich opened this Issue Feb 27, 2019 · 55 comments

Comments

Projects
None yet
@bill-rich
Copy link

bill-rich commented Feb 27, 2019

Unable to fetch golang/lint because of unexpected module path error.

go get -u golang.org/x/lint
go: finding golang.org/x/lint latest
go: finding golang.org/x/sync latest
go: finding google.golang.org/genproto latest
go: finding golang.org/x/net latest
go: finding github.com/golang/glog latest
go: finding golang.org/x/tools latest
go: finding github.com/golang/lint latest
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding golang.org/x/exp latest
go: finding golang.org/x/oauth2 latest
go: finding honnef.co/go/tools latest
go: finding golang.org/x/sys latest
go get: error loading module requirements
@arbarlow

This comment has been minimized.

Copy link

arbarlow commented Feb 27, 2019

I have just noticed this too, seem the go.mod added just recently has broken this? @matloob

@michaelandersen

This comment has been minimized.

Copy link

michaelandersen commented Feb 27, 2019

x-lint

Same here. Failing download of x/lint. Worked 4 hours ago.

@matloob

This comment has been minimized.

Copy link
Contributor

matloob commented Feb 27, 2019

@heschik

Oh I was looking at this very issue just now..

It seems that somehow golang.org/x/lint is being imported by someone as github.com/golang/lint (its former import path). golang.org/x/lint now has a "//import" comment, so it shouldn't even build with that import path.

I saw this in x/exp. I'm wondering if you can share which module you're seeing this in

@kourtni

This comment has been minimized.

Copy link

kourtni commented Feb 27, 2019

Hi,

I'm also seeing this error. I'm trying to generate a go.mod file for a project I'm working on. However it is failing with:

go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go: error loading module requirements

We don't directly depend on the golang linter, so not certain how I can get beyond this issue.

@alde

This comment has been minimized.

Copy link

alde commented Feb 27, 2019

I saw this in x/exp. I'm wondering if you can share which module you're seeing this in

I see the same thing, and grep-ing from my old vendor folder I have no imports matching that.

Trying to move https://github.com/alde/ale from glide to mod

@matloob

This comment has been minimized.

Copy link
Contributor

matloob commented Feb 27, 2019

@dmitshur to see if he has ideas

@kpurdon

This comment has been minimized.

Copy link

kpurdon commented Feb 27, 2019

I'm seeing this as well, let me know if I can provide any additional debug info. For now here is my require list from go.mod:

require (
	github.com/BurntSushi/toml v0.3.1 // indirect
	github.com/DATA-DOG/go-txdb v0.1.2
	github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
	github.com/go-sql-driver/mysql v1.4.0 // indirect
	github.com/lib/pq v1.0.0
	github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2
	github.com/sirupsen/logrus v1.3.0
	github.com/spf13/viper v1.3.1
	github.com/streadway/amqp v0.0.0-20190214183023-884228600bc9
	github.com/stretchr/testify v1.3.0
)
@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Feb 27, 2019

I can reproduce this in an empty module, using Go 1.12:

$ export GO111MODULE=on
$ cd $(mktemp -d)
$ go mod init foobar
$ go get -u golang.org/x/lint
go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: finding golang.org/x/net v0.0.0-20190227160552-c95aed5357e7
go: finding github.com/golang/protobuf v1.3.0
go: finding golang.org/x/tools v0.0.0-20190227180812-8dcc6e70cdef
go: finding google.golang.org/genproto v0.0.0-20190226184841-fc2db5cae922
go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421
go: finding github.com/golang/lint v0.0.0-20190227174305-5b3e6a55c961
go: finding golang.org/x/exp v0.0.0-20190221220918-438050ddec5e
go: finding google.golang.org/grpc v1.19.0
go: finding golang.org/x/sys v0.0.0-20190226215855-775f8194d0f9
go: finding honnef.co/go/tools v0.0.0-20190215041234-466a0476246c
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding github.com/google/pprof v0.0.0-20190226225141-b51a6544410d
go get: error loading module requirements
$ echo $?
1
@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Feb 27, 2019

For those who are running into this, are you running go get -u? Does it work successfully if you leave out -u and run just go get?

@arbarlow

This comment has been minimized.

Copy link

arbarlow commented Feb 27, 2019

I'm running go get -u, with a different library as it happens, but I think that is updating golang.org/x/lint anyway

@SVilgelm

This comment has been minimized.

Copy link

SVilgelm commented Feb 27, 2019

14:41:03$ golint -set_exit_status -min_confidence 0.81 ./pkg/...
-bash: golint: command not found

14:41:11$ go get golang.org/x/lint/golint
go: finding golang.org/x/lint/golint latest
go: finding golang.org/x/lint latest

14:41:19$ golint -set_exit_status -min_confidence 0.81 ./pkg/...

14:41:48$ rm -rf ~/go/src/golang.org/x/lint/ ~/go/bin/golint

14:41:56$ golint -set_exit_status -min_confidence 0.81 ./pkg/...
-bash: /Users/svilgelm/go/bin/golint: No such file or directory

14:41:59$ go get -u golang.org/x/lint/golint
go: finding golang.org/x/lint/golint latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/sync latest
go: finding golang.org/x/net latest
go: finding golang.org/x/tools latest
go: finding google.golang.org/genproto latest
go: finding github.com/golang/glog latest
go: finding github.com/golang/lint latest
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding honnef.co/go/tools latest
go: finding golang.org/x/exp latest
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/sys latest
go get: error loading module requirements

14:42:17$ golint -set_exit_status -min_confidence 0.81 ./pkg/...
-bash: /Users/svilgelm/go/bin/golint: No such file or directory
@kpurdon

This comment has been minimized.

Copy link

kpurdon commented Feb 27, 2019

In a clean docker build I see a failure on an empty module w/ -u and success without -u

with -u

docker run -it --rm golang:1.12 sh -c "GO111MODULE=on mkdir /tmp/foo && cd /tmp/foo && go mod init foo && go get -u golang.org/x/lint"
go: creating new go.mod: module foo
go: finding golang.org/x/lint latest
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding golang.org/x/tools latest
go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding google.golang.org/appengine v1.4.0
go: finding golang.org/x/sync latest
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding github.com/golang/protobuf v1.2.0
go: finding golang.org/x/text v0.3.0
go: finding github.com/golang/protobuf v1.3.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding golang.org/x/net latest
go: finding google.golang.org/genproto latest
go: finding golang.org/x/net v0.0.0-20181106065722-10aee1819953
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
go: finding google.golang.org/grpc v1.16.0
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding google.golang.org/grpc v1.19.0
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/client9/misspell v0.3.4
go: finding github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
go: finding github.com/golang/mock v1.1.1
go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding cloud.google.com/go v0.26.0
go: finding honnef.co/go/tools latest
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/golang/mock v1.2.0
go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/golang/lint latest
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go get: error loading module requirements

without -u

docker run -it --rm golang:1.12 sh -c "GO111MODULE=on mkdir /tmp/foo && cd /tmp/foo && go mod init foo && go get golang.org/x/lint"
go: creating new go.mod: module foo
go: finding golang.org/x/lint latest
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding google.golang.org/appengine v1.4.0
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding github.com/golang/protobuf v1.2.0
go: finding golang.org/x/text v0.3.0
go: downloading golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: extracting golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: downloading golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: extracting golang.org/x/tools v0.0.0-20190226205152-f727befe758c

Prativa20 added a commit to vmware/terraform-provider-vra7 that referenced this issue Feb 27, 2019

Fix build error as reported in golang/lint#436
Signed-off-by: Prativa Bawri<bawrip@vmware.com>
@matloob

This comment has been minimized.

Copy link
Contributor

matloob commented Feb 27, 2019

@bcmills: any ideas?

@matloob

This comment has been minimized.

Copy link
Contributor

matloob commented Feb 27, 2019

We're going to look into whether we can figure out what's going on. If we can't find any leads in a couple of days, we'll revert the change that added the go.mod file. But hopefully we don't need to.

@kpurdon

This comment has been minimized.

Copy link

kpurdon commented Feb 27, 2019

FWIW this bug actually made me check myself on the copy/paste of -u from the README, which is something I don't actually want to be doing in CI. So, thanks for the bug? =)

Let me know if there is any additional debugging I can do or information I can provide.

@michaelandersen

This comment has been minimized.

Copy link

michaelandersen commented Feb 27, 2019

Looks like it's fixed: google/go-genproto#144..

sorry too soon :)

@kernle32dll

This comment has been minimized.

Copy link

kernle32dll commented Feb 27, 2019

Appending the current result of @kpurdon docker command. It has become much much longer in the past 2 hours. That looks awfully like a circle-import of grand scheme.

$ docker run -it --rm golang:1.12 sh -c "GO111MODULE=on mkdir /tmp/foo && cd /tmp/foo && go mod init foo && go get -u golang.org/x/lint"
go: creating new go.mod: module foo
go: finding golang.org/x/lint latest
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding golang.org/x/tools latest
go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding google.golang.org/appengine v1.4.0
go: finding golang.org/x/sync latest
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding github.com/golang/protobuf v1.2.0
go: finding golang.org/x/text v0.3.0
go: finding github.com/golang/protobuf v1.3.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding golang.org/x/net latest
go: finding google.golang.org/genproto latest
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding google.golang.org/grpc v1.19.0
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding honnef.co/go/tools latest
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding google.golang.org/appengine v1.1.0
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/golang/mock v1.1.1
go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522
go: finding github.com/client9/misspell v0.3.4
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding cloud.google.com/go v0.26.0
go: finding golang.org/x/oauth2 latest
go: finding cloud.google.com/go v0.34.0
go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding github.com/golang/mock v1.2.0
go: finding github.com/golang/glog latest
go: finding golang.org/x/exp latest
go: finding cloud.google.com/go v0.36.0
go: finding golang.org/x/sys latest
go: finding golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890
go: finding google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922
go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: finding google.golang.org/grpc v1.17.0
go: finding github.com/google/martian v2.1.0+incompatible
go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/googleapis/gax-go/v2 v2.0.3
go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c
go: finding go.opencensus.io v0.18.0
go: finding google.golang.org/api v0.1.0
go: finding golang.org/x/time latest
go: finding golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
go: finding golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d
go: finding golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b
go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a
go: finding golang.org/x/net v0.0.0-20181106065722-10aee1819953
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding google.golang.org/grpc v1.16.0
go: finding github.com/google/btree latest
go: finding go.opencensus.io v0.19.0
go: finding google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/prometheus/client_model latest
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e
go: finding github.com/openzipkin/zipkin-go v0.1.1
go: finding github.com/grpc-ecosystem/grpc-gateway v1.5.0
go: finding github.com/openzipkin/zipkin-go v0.1.5
go: finding golang.org/x/build latest
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/golang/lint latest
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/grpc-ecosystem/grpc-gateway v1.7.0
go: finding github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50
go: finding github.com/prometheus/common v0.2.0
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/shurcooL/htmlg latest
go: finding github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568
go: finding dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0
go: finding github.com/beorn7/perks latest
go: finding github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4
go: finding github.com/neelance/astrewrite latest
go: finding github.com/prometheus/client_golang v0.8.0
go: finding github.com/google/pprof latest
go: finding github.com/google/go-querystring v1.0.0
go: finding git.apache.org/thrift.git v0.0.0-20181218151757-9b75e4fe745a
go: finding github.com/flynn/go-shlex latest
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding dmitri.shuralyov.com/html/belt latest
go: finding github.com/go-kit/kit v0.8.0
go: finding gopkg.in/inf.v0 v0.9.1
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/shurcooL/component latest
go: finding github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133
go: finding google.golang.org/appengine v1.3.0
go: finding github.com/shurcooL/webdavfs latest
go: finding honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding github.com/shurcooL/sanitized_anchor_name v1.0.0
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2
go: finding github.com/eapache/go-resiliency v1.1.0
go: finding github.com/shurcooL/users latest
go: finding github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470
go: finding github.com/prometheus/common v0.0.0-20181218105931-67670fe90761
go: finding cloud.google.com/go v0.31.0
go: finding github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d
go: finding github.com/prometheus/procfs latest
go: finding dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412
go: finding github.com/shurcooL/github_flavored_markdown latest
go: finding grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
go: finding github.com/coreos/go-systemd latest
go: finding github.com/grpc-ecosystem/grpc-gateway v1.6.2
go: finding cloud.google.com/go v0.33.1
go: finding github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9
go: finding github.com/gogo/protobuf v1.1.1
go: finding dmitri.shuralyov.com/service/change latest
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/shurcooL/httpgzip latest
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852
go: finding golang.org/x/perf latest
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/mwitkow/go-conntrack latest
go: finding github.com/prometheus/client_golang v0.9.1
go: finding gopkg.in/check.v1 latest
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/golang/snappy v0.0.1
go: finding github.com/go-stack/stack v1.8.0
go: finding google.golang.org/genproto v0.0.0-20181109154231-b5d43981345b
go: finding golang.org/x/sys v0.0.0-20181218192612-074acd46bca6
go: finding github.com/gorilla/context v1.1.1
go: finding github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191
go: finding grpc.go4.org latest
go: finding golang.org/x/tools v0.0.0-20181219222714-6e267b5cc78e
go: finding google.golang.org/api v0.0.0-20181030000543-1d582fd0359e
go: finding github.com/alecthomas/template latest
go: finding github.com/eapache/queue v1.1.0
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
go: finding github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c
go: finding github.com/gopherjs/gopherjs latest
go: finding dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3
go: finding github.com/russross/blackfriday v1.5.2
go: finding github.com/shurcooL/issues latest
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/gorilla/mux v1.6.2
go: finding github.com/gregjones/httpcache latest
go: finding github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20
go: finding github.com/shurcooL/gopherjslib latest
go: finding github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07
go: finding github.com/shurcooL/highlight_go latest
go: finding github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82
go: finding github.com/gorilla/mux v1.7.0
go: finding github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625
go: finding github.com/tarm/serial latest
go: finding github.com/dustin/go-humanize v1.0.0
go: finding github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: finding github.com/bradfitz/go-smtpd latest
go: finding github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d
go: finding github.com/russross/blackfriday v2.0.0+incompatible
go: finding github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: finding github.com/shurcooL/gofontwoff latest
go: finding github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239
go: finding github.com/eapache/go-xerial-snappy latest
go: finding dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c
go: finding github.com/shurcooL/reactions latest
go: finding github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9
go: finding github.com/anmitsu/go-shlex latest
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273
go: finding github.com/googleapis/gax-go v2.0.0+incompatible
go: finding github.com/rcrowley/go-metrics latest
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding google.golang.org/grpc v1.14.0
go: finding dmitri.shuralyov.com/state latest
go: finding github.com/gliderlabs/ssh v0.1.1
go: finding github.com/googleapis/gax-go v2.0.2+incompatible
go: finding github.com/sergi/go-diff v1.0.0
go: finding github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1
go: finding golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4
go: finding google.golang.org/appengine v1.2.0
go: finding github.com/gliderlabs/ssh v0.1.3
go: finding github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2
go: finding github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab
go: finding github.com/pkg/errors v0.8.0
go: finding dmitri.shuralyov.com/app/changes latest
go: finding git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999
go: finding github.com/jellevandenhooff/dkim latest
go: finding github.com/microcosm-cc/bluemonday v1.0.1
go: finding github.com/shurcooL/octicon latest
go: finding github.com/openzipkin/zipkin-go v0.1.3
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/neelance/sourcemap latest
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/kr/pty v1.1.3
go: finding github.com/microcosm-cc/bluemonday v1.0.2
go: finding github.com/Shopify/sarama v1.19.0
go: finding github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241
go: finding google.golang.org/api v0.0.0-20181220000619-583d854617af
go: finding github.com/kr/logfmt latest
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/Shopify/sarama v1.21.0
go: finding golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16
go: finding github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc
go: finding github.com/shurcooL/httperror latest
go: finding golang.org/x/oauth2 v0.0.0-20181120190819-8f65e3013eba
go: finding github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b
go: finding golang.org/x/crypto latest
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/shurcooL/highlight_diff latest
go: finding github.com/pierrec/lz4 v2.0.5+incompatible
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding go4.org v0.0.0-20180809161055-417644f6feb5
go: finding go4.org latest
go: finding github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d
go: finding github.com/sourcegraph/annotate latest
go: finding golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1
go: finding github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: finding github.com/shurcooL/httpfs latest
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/alecthomas/units latest
go: finding github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122
go: finding github.com/shurcooL/notifications latest
go: finding golang.org/x/net v0.0.0-20181217023233-e147a9138326
go: finding github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e
go: finding github.com/sourcegraph/syntaxhighlight latest
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/kisielk/errcheck v1.2.0
go: finding golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: finding sourcegraph.com/sourcegraph/go-diff v0.5.0
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding golang.org/x/tools v0.0.0-20181122213734-04b5d21e00f1
go: finding github.com/kr/text v0.1.0
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3
go: finding github.com/kr/pty v1.1.1
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041
go: finding github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/sirupsen/logrus v1.2.0
go: finding sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4
go: finding github.com/google/go-github v17.0.0+incompatible
go: finding google.golang.org/genproto v0.0.0-20181219182458-5a97ab628bfb
go: finding github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e
go: finding golang.org/x/net v0.0.0-20181029044818-c44066c5c816
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/davecgh/go-spew v1.1.0
go: finding golang.org/x/sys v0.0.0-20181029174526-d69651ed3497
go get: error loading module requirements

This awfully reminds me of that Sirupsen business (sirupsen/logrus#566 and sirupsen/logrus#570) a few years back...

@srikanthops

This comment has been minimized.

Copy link

srikanthops commented Feb 27, 2019

for the if fails when I use -u, without -u it works fine

markpeek added a commit to vmware/terraform-provider-vra7 that referenced this issue Feb 28, 2019

Add more unit tests for the sdk and some refactoring (#128)
* Adding more unit tests for the sdk and some refactoring
   - Added more tests in the sdk
   - Removed some logs that are not required.
   - Removed a duplicate function
* Updating go.sum to fix the build failure
* Fix build error as reported in golang/lint#436

Signed-off-by: Prativa Bawri<bawrip@vmware.com>
@thepudds

This comment has been minimized.

Copy link

thepudds commented Feb 28, 2019

From a quick look just now, there might be two issues, where github.com/openzipkin/zipkin-go@v0.1.5 and google.golang.org/grpc@v1.16.0 might both be using the older path of github.com/golang/lint.

Create a clean module cache, and do a go get -u golang.org/x/lint (which currently fails):

mkdir /tmp/scratchpad/lint-test
cd /tmp/scratchpad/lint-test
export GOPATH=/tmp/scratchpad/gopath-for-lint
go mod init tempmod
go get -u golang.org/x/lint  # this currently fails

grep our newly populated module cache:

cd $GOPATH/pkg/mod
grep -r github.com/golang/lint

where the grep -r outputs:

 ...
cache/download/github.com/openzipkin/zipkin-go/@v/v0.1.5.mod:  
 github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3 // indirect
cache/download/google.golang.org/grpc/@v/v1.16.0.mod: 
 github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
...

edit: direct user of the old lint path might more likely be google.golang.org/grpc@v1.16.0 than github.com/openzipkin/zipkin-go@v0.1.5 (given zipkin-go seems to be indirect for the old lint path)

@sickhye

This comment was marked as outdated.

Copy link

sickhye commented Feb 28, 2019

go clean --modcache
go get golang.org/x/lint

WFM

@thepudds

This comment was marked as resolved.

Copy link

thepudds commented Feb 28, 2019

@sickhye try with -u. In other words, go get -u golang.org/x/lint.

@thepudds

This comment has been minimized.

Copy link

thepudds commented Feb 28, 2019

Let's take a look at seemingly problematic google.golang.org/grpc@v1.16.0:

git clone -b v1.16.0 https://github.com/grpc/grpc-go /tmp/scratchpad/grpc
cd /tmp/scratchpad/grpc

The grpc go.mod at this version shows both variations of the lint path:

       github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
       golang.org/x/lint v0.0.0-20180702182130-06c8688daad7 // indirect

grep -r github.com/golang/lint shows the now incorrect older lint path:

test/tools/tools.go:    _ "github.com/golang/lint/golint"
@thepudds

This comment has been minimized.

Copy link

thepudds commented Feb 28, 2019

FWIW, Go 1.11.5 fails with similar error:

mkdir /tmp/scratchpad/lint-test-go1.11
cd /tmp/scratchpad/lint-test-go1.11
export GOPATH=/tmp/scratchpad/gopath-for-lint-go1.11
go1.11.5 mod init tempmod
go1.11.5 get -u golang.org/x/lint  

which fails with:

...
go: github.com/golang/lint@v0.0.0-20190227174305-5b3e6a55c961: parsing go.mod: 
unexpected module path "golang.org/x/lint"
...
go: finding github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e
go get: error loading module requirements
@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Feb 28, 2019

Thanks for the nice analysis @thepudds. It was a good idea to clean the module cache, run the go get -u command, then look at the module cache content to find relevant old versions of modules that import lint at the github.com/golang/lint path.

Independent of the lint issue, I've filed golang/go#30455 for the cmd/go issue, which should be investigated even after the lint issue is resolved.

I think I see the root cause of go get -u golang.org/x/lint failing in module mode now, and how to resolve it most directly.

The problem is in the https://github.com/openzipkin/zipkin-go module. Its latest tagged version is v0.1.5, which requires the bad old grpc module you mentioned:

https://github.com/openzipkin/zipkin-go/blob/v0.1.5/go.mod#L27

I'll file an issue into that repo. As soon as they issue a new version that updates its grpc dependency, I believe the go get -u golang.org/x/lint issue should be resolved.

@thepudds

This comment has been minimized.

Copy link

thepudds commented Mar 1, 2019

The problem seems to have morphed slightly.

Appending these two replace directives to your local go.mod file seems to workaround the current version of the problem:

replace github.com/golang/lint => github.com/golang/lint v0.0.0-20190227174305-8f45f776aaf1
replace github.com/go-resty/resty => gopkg.in/resty.v1 v1.9.0

Without the second replace, it fails with:

go: github.com/go-resty/resty@v1.9.0: parsing go.mod: unexpected module path "gopkg.in/resty.v1"

It looks like https://github.com/grpc-ecosystem/grpc-gateway released v1.8.0 about 5 hours ago. It looks like that might be the first release with go.mod. It uses github.com/go-resty/resty as the import path in the grpc-gateway code and in the require section of its go.mod, but the proper import path for resty seems to be declared to be gopkg.in/resty.v1.

CC @llimllib

@kernle32dll

This comment has been minimized.

Copy link

kernle32dll commented Mar 1, 2019

The problem seems to have morphed slightly.

Appending these two replace directives to your local go.mod file seems to workaround the current version of the problem:

replace github.com/go-resty/resty => gopkg.in/resty.v1 v1.9.0
replace github.com/golang/lint => github.com/golang/lint v0.0.0-20190227174305-8f45f776aaf1

Jup, there is an issue with grpc-gateway, the issue is already tracked.

@johanbrandhorst

This comment has been minimized.

Copy link
Member

johanbrandhorst commented Mar 1, 2019

Oh boy I didn't realise I'd break golint. I'll see what I can do about this ASAP.

@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 1, 2019

With reference to #436 (comment), it's been a few days, and while we have a very good idea of the cause, we don't have a complete fix implemented. The problem is widespread, and while there are workarounds available, it is causing disruption.

We're going to temporarily revert adding the go.mod file now, and re-add it back when we're in a position to do so without causing this issue again.

Removing the go.mod file should be a safe operation because this module does not have any semver-compatible tags yet, and it will put it in the state it was before we added go.mod in CL 162913. (In the unlikely case it makes the situation worse, it can be re-added once again.)

gopherbot pushed a commit that referenced this issue Mar 1, 2019

Revert "all: add a go.mod file"
This reverts commit 5b3e6a5.

Adding a go.mod file has started to cause go get -u golang.org/x/lint
to fail in module mode. This is issue #436. Remove the
go.mod file for now in order to resolve the issue. We will re-add
the go.mod file to this repository again when it's a better time
to do so.

Change-Id: I9d63410de03ddca617ddb5ef86effba9f6bd3577
Reviewed-on: https://go-review.googlesource.com/c/164641
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
@johanbrandhorst

This comment has been minimized.

Copy link
Member

johanbrandhorst commented Mar 2, 2019

The grpc-gateway mod issues are resolved with the release of v1.8.1. Please reopen grpc-ecosystem/grpc-gateway#886 or raise another one if you're still seeing issues.

@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 2, 2019

Removing the go.mod file in lint has made it possible to go get -u golang.org/x/lint in module mode once again, so this issue should be resolved.

I'm going to leave this open for some time in case there are any other issues specific to lint, but will close it after that.

@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 3, 2019

I'm going to close this since the issue is resolved (via CL 164641) and nothing new came up.

By now, I have a better understanding of how to diagnose whether adding a go.mod file will cause an issue like this to re-occur, so adding the go.mod file next time will be a safe operation. /cc @matloob @bcmills @heschik

Steps to verify adding go.mod is safe

These steps can be used to verify that adding a go.mod that specifies the module path will not introduce an "unexpected module path" error when doing go get -u -m on target module:

# create an empty module 
$ cd $(mktemp -d)
$ go mod init foo

# get lint (currently without go.mod) or any target module
$ go get golang.org/x/lint

# replace it with a local copy that has a go.mod file added
$ go mod edit -replace=golang.org/x/lint=/tmp/lint-with-gomod-file

# update all dependencies in the main module
$ go get -u -m

# check if lint is in the build list under an incorrect module path
$ go list -m all | grep lint
github.com/golang/lint v0.0.0-20190301231843-5614ed5bae6f
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f

To verify that an upcoming change will fix the problem, you can add a replace directive to go.mod before doing go get -u -m operation. E.g.:

$ cd $(mktemp -d)
$ go mod init foo
$ go get golang.org/x/lint
$ go mod edit -replace=github.com/openzipkin/zipkin-go=/tmp/zipkin-go-at-PR-115
$ go get -u -m
$ go list -m all | grep lint
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f

I expect we'll be in a position to re-add the go.mod file to lint when PR openzipkin/zipkin-go#115 is merged and a tagged release is made, or when golang/go#30486 is resolved and CL 160837 can be merged. Whichever happens first.

@dmitshur dmitshur closed this Mar 3, 2019

@dmitshur dmitshur added the bug label Mar 3, 2019

@llimllib

This comment has been minimized.

Copy link

llimllib commented Mar 3, 2019

Thanks for your quick response and hard work diagnosing this @dmitshur

gopherbot pushed a commit that referenced this issue Mar 13, 2019

all: re-introduce go.mod and go.sum files
Now that tools' dependencies have been cleaned up in golang.org/cl/160837, lint
doesn't have any transitive dependencies on modules that import it using the
wrong path. It is now safe to reintroduce a go.mod file to this repo. I've
checked using dmitshur's instructions in
#436 (comment) that lint only
appears with its canonical module path in the build list.

Updates #436

Change-Id: I6343aa103408b20562e17ea019602b159b899fc6
Reviewed-on: https://go-review.googlesource.com/c/lint/+/166278
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
@jemartti

This comment has been minimized.

Copy link

jemartti commented Mar 13, 2019

Latest release with the go.mod file breaks again for me. (Using replace github.com/golang/lint => github.com/golang/lint v0.0.0-20190227174305-8f45f776aaf1 in my go.mod still works.) Any tips on diagnosing further?

$ go get -u
go: finding github.com/opencoconut/coconutgo latest
go: finding github.com/snikch/goodman latest
go: finding github.com/golang/glog latest
go: finding github.com/shurcooL/gofontwoff latest
go: finding github.com/sourcegraph/annotate latest
go: finding github.com/shurcooL/highlight_diff latest
go: finding github.com/google/btree latest
go: finding dmitri.shuralyov.com/service/change latest
go: finding github.com/shurcooL/highlight_go latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding dmitri.shuralyov.com/state latest
go: finding github.com/shurcooL/go latest
go: finding github.com/mediocregopher/mediocre-go-lib latest
go: finding github.com/shurcooL/notifications latest
go: finding golang.org/x/exp latest
go: finding github.com/alecthomas/template latest
go: finding github.com/beorn7/perks latest
go: finding github.com/gopherjs/gopherjs latest
go: finding golang.org/x/net latest
go: finding golang.org/x/perf latest
go: finding github.com/jellevandenhooff/dkim latest
go: finding github.com/tarm/serial latest
go: finding github.com/shurcooL/events latest
go: finding google.golang.org/genproto latest
go: finding github.com/shurcooL/gopherjslib latest
go: finding github.com/shurcooL/reactions latest
go: finding golang.org/x/sync latest
go: finding github.com/flynn/go-shlex latest
go: finding github.com/shurcooL/component latest
go: finding dmitri.shuralyov.com/html/belt latest
go: finding github.com/BurntSushi/xgb latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/time latest
go: finding github.com/shurcooL/home latest
go: finding honnef.co/go/tools latest
go: finding github.com/shurcooL/httpfs latest
go: finding github.com/coreos/go-systemd latest
go: finding golang.org/x/sys latest
go: finding github.com/gregjones/httpcache latest
go: finding github.com/shurcooL/webdavfs latest
go: finding github.com/eapache/go-xerial-snappy latest
go: finding github.com/mwitkow/go-conntrack latest
go: finding github.com/rcrowley/go-metrics latest
go: finding github.com/shurcooL/httperror latest
go: finding github.com/shurcooL/users latest
go: finding github.com/golang/lint latest
go: finding golang.org/x/tools latest
go: github.com/golang/lint@v0.0.0-20190313153728-d0100b6bd8b3: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding golang.org/x/lint latest
go: finding golang.org/x/oauth2 latest
go: finding gopkg.in/mgo.v2 latest
go get: error loading module requirements
@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 13, 2019

@jemartti Can you please provide more information so we can reproduce the issue? I can't reproduce it with Go 1.12:

$ cd $(mktemp -d)
$ go mod init m
go: creating new go.mod: module m
$ go get -u golang.org/x/lint
go: finding golang.org/x/lint latest
go: finding golang.org/x/net latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/tools latest
go: finding golang.org/x/sys latest
go: downloading golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: extracting golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: downloading golang.org/x/tools v0.0.0-20190313153539-516ab0aa77ec
go: extracting golang.org/x/tools v0.0.0-20190313153539-516ab0aa77ec
$ echo $?
0

I don't know where you ran go get -u.

@bcmills

This comment has been minimized.

Copy link
Member

bcmills commented Mar 13, 2019

@jemartti Funny you should mention that now, because I was just pointing out to @dmitshur that golang.org/x/oauth2 has been failing go get -u in the same way, presumably since its go.mod file was added on January 10.

@ernestoalejo

This comment has been minimized.

Copy link

ernestoalejo commented Mar 13, 2019

I get a reproducible error with this:

$ cd $(mktemp -d)

$ go mod init m
go: creating new go.mod: module m

$ go get cloud.google.com/go
go: finding github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e
go: finding github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273
go: finding github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122
go: finding github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470
go: finding github.com/microcosm-cc/bluemonday v1.0.1
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241
go: finding github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
go: finding github.com/dustin/go-humanize v1.0.0
go: finding cloud.google.com/go v0.26.0
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc
go: finding github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537
go: finding go4.org v0.0.0-20180809161055-417644f6feb5
go: finding github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1
go: finding github.com/russross/blackfriday v1.5.2
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding golang.org/x/net v0.0.0-20181029044818-c44066c5c816
go: finding github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b
go: finding github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4
go: finding github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133
go: finding github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/kr/pty v1.1.3
go: finding github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e
go: finding google.golang.org/appengine v1.4.0
go: finding github.com/googleapis/gax-go v2.0.0+incompatible
go: finding github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9
go: finding github.com/gogo/protobuf v1.1.1
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191
go: finding github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding github.com/kr/pty v1.1.1
go: finding github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86
go: finding github.com/client9/misspell v0.3.4
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding golang.org/x/text v0.3.0
go: finding google.golang.org/api v0.0.0-20181030000543-1d582fd0359e
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding gopkg.in/inf.v0 v0.9.1
go: finding cloud.google.com/go v0.31.0
go: finding dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c
go: finding dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3
go: finding github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d
go: finding golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852
go: finding github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: finding github.com/ghodss/yaml v1.0.0
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898
go: finding google.golang.org/grpc v1.17.0
go: finding google.golang.org/appengine v1.3.0
go: finding golang.org/x/net v0.0.0-20181106065722-10aee1819953
go: downloading cloud.google.com/go v0.37.0
go: extracting cloud.google.com/go v0.37.0

$ go get -u
go: finding github.com/prometheus/client_model latest
go: finding dmitri.shuralyov.com/service/change latest
go: finding github.com/sourcegraph/syntaxhighlight latest
go: finding dmitri.shuralyov.com/app/changes latest
go: finding github.com/gregjones/httpcache latest
go: finding dmitri.shuralyov.com/state latest
go: finding github.com/shurcooL/octicon latest
go: finding github.com/flynn/go-shlex latest
go: finding github.com/kisielk/errcheck v1.2.0
go: finding google.golang.org/api v0.2.0
go: finding github.com/shurcooL/github_flavored_markdown latest
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding github.com/gliderlabs/ssh v0.1.3
go: finding github.com/shurcooL/httpfs latest
go: finding github.com/golang/protobuf v1.3.0
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding github.com/gopherjs/gopherjs latest
go: finding github.com/golang/lint latest
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/prometheus/client_golang v0.9.2
go: finding gopkg.in/resty.v1 v1.12.0
go: finding github.com/google/btree latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/build latest
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding golang.org/x/lint latest
go: finding honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3
go: finding golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
go: finding github.com/openzipkin/zipkin-go v0.1.3
go: github.com/golang/lint@v0.0.0-20190313153728-d0100b6bd8b3: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802
go: finding github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829
go: finding grpc.go4.org latest
go: finding github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
go: finding github.com/hashicorp/golang-lru v0.5.0
go: finding golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846
go: finding github.com/shurcooL/go-goon latest
go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding sourcegraph.com/sqs/pbtypes v1.0.0
go: finding golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: finding golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563
go: finding google.golang.org/genproto v0.0.0-20181219182458-5a97ab628bfb
go: finding google.golang.org/api v0.0.0-20181220000619-583d854617af
go: finding github.com/grpc-ecosystem/grpc-gateway v1.6.2
go: finding cloud.google.com/go v0.34.0
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
go: finding gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7
go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f
go: finding golang.org/x/tools v0.0.0-20181219222714-6e267b5cc78e
go: finding golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1
go: finding golang.org/x/sys v0.0.0-20181218192612-074acd46bca6
go: finding golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6
go get: error loading module requirements

$ echo $?
1

Edit: The go.mod file:

module m

require cloud.google.com/go v0.37.0 // indirect
@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 13, 2019

@ernestoalejo That looks like a valid issue, but it needs to be resolved in the cloud.google.com/go module. Do you mind opening an issue in its issue tracker (https://github.com/googleapis/google-cloud-go/issues)? Thank you.

@broady

This comment has been minimized.

Copy link
Member

broady commented Mar 14, 2019

@dmitshur golang.org/x/build also needs an update:

https://github.com/golang/build/blob/master/go.mod

	cloud.google.com/go v0.31.0
	google.golang.org/grpc v1.16.0 // indirect

But this really seems like a bug in cmd/go. This old gRPC package (and therefore the wrong golang/lint) isn't actually used in the build but it prevents go get from working properly.

@dmitshur

This comment has been minimized.

Copy link
Member

dmitshur commented Mar 14, 2019

@broady Thanks, filed golang/go#30833 for that.

gowtham-sai added a commit to gojektech/weaver that referenced this issue Mar 18, 2019

Fix builds by changing to golang lint
Link: golang/lint#436

Error while building: go: github.com/golang/lint@v0.0.0-20190313153728-d0100b6bd8b3: parsing go.mod: unexpected module path "golang.org/x/lint"

breathman added a commit to breathman/hlf-sdk-go that referenced this issue Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.