Ask questionscmd/go: cannot find module providing package error stops `go get` processing

<!-- Please answer these questions before submitting your issue. Thanks! -->

What version of Go are you using (go version)?

<pre> $ go version go version go1.13 darwin/amd64 </pre>

Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?

<details><summary><code>go env</code> Output</summary><br><pre> $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/bill/Library/Caches/go-build" GOENV="/Users/bill/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/bill/code/go" GOPRIVATE="" GOPROXY=",direct" GOROOT="/usr/local/go" GOSUMDB="" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/bill/code/go/src/" 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/f8/nl6gsnzs1m7530bkx9ct8rzc0000gn/T/go-build656499321=/tmp/go-build -gno-record-gcc-switches -fno-common" </pre></details>

What did you do?

Given this project

I wanted to update all of the current dependencies to their current MVS. I updated a package I own and added a new tag. I ran the following command

$ go get -v all

What did you expect to see?

go: finding v1.1.0
go: downloading v1.1.0
go: extracting v1.1.0

What did you see instead?

go: finding v1.3.3
get "": found meta tag get.metaImport{Prefix:"", VCS:"git", RepoRoot:""} at //
go: finding v1.3.3
go get all: cannot find module providing package

This seemed to break the go get call because my new version never got updated.

I had to run this command to get the latest version of the package

$ go get -v
go: finding v1.1.0
go: downloading v1.1.0
go: extracting v1.1.0

Given this error, I would have liked go get to continue to update the dependencies. This is now trouble because I can't update dependencies without knowing what to update.

I would like to know why this error is occurring on the Datadog packages as well.


Answer questions ardan-bkennedy

I'm experiencing that go get -u or go get -v is not working without the use of all. If I don't use all I get this error.

$ go get -u
go get .: path /Users/bill/code/go/src/ is not a package in module rooted at /Users/bill/code/go/src/

Regardless, this error from the Datadog package is preventing go get to continue its work.

$ go get -u all
go: finding v1.3.3
go: finding v1.3.3
go get all: cannot find module providing package

Then the question is, is there different behavior with all using or not using -u or -v?

Github User Rank List