Go: cmd/go: unknown revision despite it being a released revision

Created on 21 May 2019  路  3Comments  路  Source: golang/go

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

$ go version go1.12.5 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

```GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/andrewsherman/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/andrewsherman/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/andrewsherman/Desktop/modules/device-logs-service/go.mod"
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/j3/wf6zjt5x0fx6l2nr0h1x8yv80000gn/T/go-build910017862=/tmp/go-build -gno-record-gcc-switches -fno-common"

### What did you do?

go build



### What did you expect to see?

I expected it to build

### What did you see instead?

```go: finding github.com/getwagz/go-sdk v1.38.1
go: github.com/getwagz/[email protected]: unknown revision v1.38.1
go: error loading module requirements

This is the latest release of the github.com/getwagz/go-sdk and in my go.mod file, it is req

FrozenDueToAge WaitingForInfo modules

Most helpful comment

I fixed the issue by changing https to ssh in my gitconfig. I also discovered that the case must match in the paths from github, go.mod, & the import in the actual source. Thanks

All 3 comments

@aesherman is github.com/getwagz/go-sdk a public repository?

Can you try with the tip version of Go? It might work better, or might give a better error message.

An easy way to get tip is go get golang.org/dl/gotip && gotip download, and then you can do gotip get github.com/getwagz/go-sdk.

If that does not help, can you try gotip get -x -v github.com/getwagz/go-sdk?

To answer a question I saw... github.com/getwagz/go-sdk _is_ a private repo that I have access to. Does something different need to be configured for modules in order to get it to work with private repos?

I fixed the issue by changing https to ssh in my gitconfig. I also discovered that the case must match in the paths from github, go.mod, & the import in the actual source. Thanks

Was this page helpful?
0 / 5 - 0 ratings