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

执行时报错 #15

Open
gstormlee opened this issue Apr 1, 2020 · 7 comments
Open

执行时报错 #15

gstormlee opened this issue Apr 1, 2020 · 7 comments

Comments

@gstormlee
Copy link

go build -o ../build/microGW main.go
go: github.com/micro/[email protected] requires
k8s.io/[email protected] requires
github.com/gogo/[email protected]: invalid pseudo-version: revision is shorter than canonical (65acae22fc9d)
这个错误,我该如何解决?谢谢

@Allenxuxu
Copy link
Owner

看看 go.mod go.sum 有没有被修改,确保没有被修改,再 build 或者 run 。

@gstormlee
Copy link
Author

确认没有改动,需要将go.mod 贴上来吗?go 1.13.6

@Allenxuxu
Copy link
Owner

git status

查看文件有没有被修改。

@gstormlee
Copy link
Author

是的,我查过了,后来用重新clone 一次,仍然这样。

@Allenxuxu
Copy link
Owner

是的,我查过了,后来用重新clone 一次,仍然这样。

有没有使用 go mod, 还是放在 GOPATH 下的

@gstormlee
Copy link
Author

使用go mod ,我刚才还删除了原来的mod 文件,重新init 一次, 仍然有这个问题。go mod 我一直在用,是可以使用的。

@Allenxuxu
Copy link
Owner

应该是 go mod 的问题

github.com/gogo/[email protected]: invalid pseudo-version: revision is shorter than canonical (65acae22fc9d)

我这边不会有问题。

你尝试删除 $HOME/go/pkg/mod 下所有文件,再试试看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants