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

running go mod tidy or make project1 gives me an error #174

Closed
mdlfop opened this issue May 18, 2020 · 7 comments
Closed

running go mod tidy or make project1 gives me an error #174

mdlfop opened this issue May 18, 2020 · 7 comments

Comments

@mdlfop
Copy link

mdlfop commented May 18, 2020

go version go1.14.3 linux/amd64
I receive the following error when I run any of the above commands:

go: github.com/pingcap/tidb@v1.1.0-beta.0.20200309111804-d8264d47f760 requires
github.com/pingcap-incubator/tinykv@v0.0.0-20200320061650-f660f803e910: invalid version: unknown revision f660f80

@Connor1996
Copy link
Collaborator

Connor1996 commented May 18, 2020

can't reproduce, are you sure it's the latest course branch?

@mdlfop
Copy link
Author

mdlfop commented May 18, 2020

Yes. I am on the latest commit on the course branch. I also tried on another computer and I still receive the same error message. Thanks. The error message when I run make project1:

GO111MODULE=on go test -v --count=1 --parallel=1 -p=1 ./kv/server -run 1
go: github.com/pingcap/tidb@v1.1.0-beta.0.20200309111804-d8264d47f760 requires
github.com/pingcap-incubator/tinykv@v0.0.0-20200320061650-f660f803e910: invalid version: unknown revision f660f80
make: *** [Makefile:54: project1] Error 1

@Connor1996
Copy link
Collaborator

github.com/pingcap/tidb@v1.1.0-beta.0.20200309111804-d8264d47f760 seems an old version, not the same as the one in the latest commit.

@mdlfop
Copy link
Author

mdlfop commented May 18, 2020

Thanks @Connor1996 . I still believe I am using the latest commit of the branch. I have created a google colab notebook showing the things I have done. Please take a look at it. (I still get the same errors here as well) https://colab.research.google.com/drive/16dSBPQ4ekB2e0nCQn4xjhJSwQSl0uBdi?usp=sharing

@Connor1996
Copy link
Collaborator

You're right. It's due to the modcache. After running go clean -modcache, I can reproduce it. Let me take a look.

@Connor1996
Copy link
Collaborator

Fix it. Please try again.

@mdlfop
Copy link
Author

mdlfop commented May 18, 2020

It works! Thanks a lot :)

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