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: mod - Recreate $GOPATH from go.mod/go.sum files #28295
Comments
@gopherbot, please add label modules |
@rkedward I'm not sure that It sounds like part of what you are trying to do is track precise versions of tools as a dependency of your module? If so, you might want to give this FAQ on the modules wiki a quick read: and there is a related runnable example of tracking tools as dependencies here (from @myitcv): |
And sorry if that is not a perfect answer. You might want to give those a quick read, and then follow up back here with additional questions, or more comments on your use case. |
@rkedward - what you want to do here is use I'll close this on the basis that answers your question; but please shout it not and we can re-open. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.11.1
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
The
protoc-gen-go
file$GOPATH/bin directory
after runninggo mod download
What did you see instead?
An empty directory
Rational
I would like to be able to recreate the $GOPATH exactly (bin, pkgs) from go.mod and go.sum. Since go.mod and go.sum are checked into the repository, another could clone the repo and recreate my development environment. This has many advantages for debugging/recreating issues to sharing project development environments between members.
The text was updated successfully, but these errors were encountered: