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" error followed by "error loading module requirements" #29374

Closed
liu-xuewen opened this issue Dec 21, 2018 · 7 comments
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@liu-xuewen
Copy link
Contributor

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

$ go version
go version go1.11 linux/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env


image

What did you do?

What did you expect to see?

resolve this bug? auto skip the missing version of module requirements

What did you see instead?

@liu-xuewen
Copy link
Contributor Author

image
image

@oiooj oiooj added the modules label Dec 21, 2018
@agnivade
Copy link
Contributor

Hi @liu-xuewen - please kindly fill the complete issue template. We need instructions on how to reproduce this issue. The screenshots have been redacted so we don't know what is going on.

auto skip the missing version of module requirements

Why do you expect this to be the behavior ? go build is supposed to build exactly what is specified in go.mod. If there is a mismatch, it should throw an error like shown above.

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 21, 2018
@thepudds
Copy link
Contributor

Hi @liu-xuewen, in addition to the information that @agnivade asked for, some other quick questions:

  1. What version of git are you using? Old versions of git can trigger an error like you are seeing.

  2. Does a basic example work for you like: https://github.com/golang/go/wiki/Modules#quick-start

  3. For diagnostic purposes, you might also want to try with Go 1.12 beta, which in many cases will print better diagnostic error messages.

    The easiest way to try go1.12beta1 is by using the go command:

$ go get golang.org/dl/go1.12beta1 
$ go1.12beta1 download 

@thepudds thepudds changed the title unknown revision error loading module requirements cmd/go: "unknown revision" error followed by "error loading module requirements" Dec 27, 2018
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@templarzq
Copy link

same issue....

@thepudds
Copy link
Contributor

@templarzq

What version of git are you using? Old versions of git can trigger an error like the one initially reported here.

Does a basic example work for you like: https://github.com/golang/go/wiki/Modules#quick-start

In any event, this issue has been closed for several months.

If you are seeing a problem, probably best to open a new issue.

@joshmsamuels
Copy link

@thepudds

I just downloaded git 2.22.0

The basic example worked but my project is giving me the same error. Do you have any other debugging steps

@golang golang locked and limited conversation to collaborators Jun 23, 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

8 participants