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
Closed

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

felipeweb opened this issue Oct 15, 2018 · 4 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@felipeweb
Copy link

felipeweb 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
Copy link
Contributor

Hi @felipeweb,

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

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 15, 2018
@felipeweb
Copy link
Author

felipeweb commented Oct 15, 2018

@agnivade updated sorry

@agnivade
Copy link
Contributor

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

@AlexRouSg
Copy link
Contributor

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
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
@golang golang locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants