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 loading module requirements #31162

Closed
gertcuykens opened this issue Mar 30, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@gertcuykens
Copy link

commented Mar 30, 2019

go1.12.1 darwin/amd64

This works

gert@gert ~/ go get -u github.com/junegunn/fzf

But this doesn't

gert@gert ~/ GO111MODULE=on go get -u github.com/junegunn/fzf
go: finding github.com/junegunn/fzf latest
go: finding github.com/smartystreets/assertions latest
go: finding github.com/gopherjs/gopherjs latest
go: finding github.com/smartystreets/goconvey latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: finding golang.org/x/tools latest
go: gopkg.in/DATA-DOG/go-sqlmock.v1@v1.3.3: go.mod has non-....v1 module path "github.com/DATA-DOG/go-sqlmock" at revision v1.3.3
go get: error loading module requirements

When following the dependency tree I have no idea why I need go-sqlmock.v1 in the first place for this package?

Also the error message doesn't make sense because there is a version v1.3.3

https://gopkg.in/DATA-DOG/go-sqlmock.v1

gert@gert ~/ go env
GOARCH="amd64"
GOBIN="/Users/gert/go/bin"
GOCACHE="/Users/gert/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gert/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.1/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/go-build037051093=/tmp/go-build -gno-record-gcc-switches -fno-common"
@gertcuykens

This comment has been minimized.

Copy link
Author

commented Mar 31, 2019

https://stackoverflow.com/questions/55430150/go111module-on-error-loading-module-requirements

Got confirmation on stack overflow what is going on. Still believe a more detailed error message by Go can be achieved here.

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.