Navigation Menu

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: unknown revision despite it being a released revision #32170

Closed
aesherman opened this issue May 21, 2019 · 3 comments
Closed

cmd/go: unknown revision despite it being a released revision #32170

aesherman opened this issue May 21, 2019 · 3 comments
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@aesherman
Copy link

aesherman commented May 21, 2019

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)?

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: github.com/getwagz/go-sdk@v1.38.1: 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

@thepudds
Copy link
Contributor

thepudds commented May 21, 2019

@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?

@thepudds thepudds added modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels May 21, 2019
@thepudds thepudds changed the title unknown revision despite it being a released revision cmd/go: unknown revision despite it being a released revision May 21, 2019
@aesherman
Copy link
Author

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?

@aesherman
Copy link
Author

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

@golang golang locked and limited conversation to collaborators May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants