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

cmd/go: error parsing go.mod: unexpected module path #28202

Closed
felipeweb opened this issue Oct 15, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@felipeweb
Copy link

commented Oct 15, 2018

What did you do?

I have cloned
https://github.com/funccloud/auth inside my gopath, went to the project folder, export GO111MODULE variable and ran go get -u inside the project folder

What did you expect to see?

run without errors

What did you see instead?

go: github.com/census-ecosystem/opencensus-go-exporter-aws@v0.0.0-20180906190126-dd54a7ef511e: parsing go.mod: unexpected module path "contrib.go.opencensus.io/exporter/aws"

System details

go version go1.11.1 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/felipeweb/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/felipeweb/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11.1/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/felipeweb/go/src/github.com/funccloud/auth/go.mod"
GOROOT/bin/go version: go version go1.11.1 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.11.1
uname -v: Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.14
BuildVersion:	18A391
lldb --version: lldb-1000.0.37
  Swift-4.2
@agnivade

This comment has been minimized.

Copy link
Member

commented Oct 15, 2018

Hi @felipeweb,

Please give us the complete steps to reproduce this issue. We do not know from which folder you ran go get -u.

@felipeweb

This comment has been minimized.

Copy link
Author

commented Oct 15, 2018

@agnivade updated sorry

@agnivade

This comment has been minimized.

Copy link
Member

commented Oct 15, 2018

Thanks. Seems like the module name is incorrect declared -

go: github.com/census-ecosystem/opencensus-go-exporter-aws@v0.0.0-20180906190126-dd54a7ef511e: parsing go.mod: unexpected module path "contrib.go.opencensus.io/exporter/aws"

You are trying to get "github.com/census-ecosystem/opencensus-go-exporter-aws", but the module path is "contrib.go.opencensus.io/exporter/aws". You should "go get contrib.go.opencensus.io/exporter/aws" instead.

Either chase down the dep tree and update the required go.mod, or add a replace directive like -

replace github.com/census-ecosystem/opencensus-go-exporter-aws master => contrib.go.opencensus.io/exporter/aws master

@agnivade agnivade closed this Oct 15, 2018

@AlexRouSg

This comment has been minimized.

Copy link
Contributor

commented Oct 15, 2018

I chased down the dep tree and it's https://github.com/google/go-cloud

felipeweb added a commit to felipeweb/go-cloud that referenced this issue Oct 15, 2018

xrayserver: fix opencensus aws exporter importpath
if a project has go-cloud as a dependency and try run ```go get -u``` it
fails because aws exporter path is wrong.
More details: golang/go#28202
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.