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: how to use the git tag for the mod version? #36314

Closed
chai2010 opened this issue Dec 30, 2019 · 1 comment
Closed

cmd/go: how to use the git tag for the mod version? #36314

chai2010 opened this issue Dec 30, 2019 · 1 comment

Comments

@chai2010
Copy link
Contributor

@chai2010 chai2010 commented Dec 30, 2019

$ go version
go version go1.14beta1 darwin/amd64

$ git clone https://github.com/chai2010/fuckgomod.git
$ cd fuckgomod
$ git checkout v0.0.3

$ go build
$ go version -m ./fuckgomod 
./fuckgomod: go1.14beta1
	path	github.com/chai2010/fuckgomod
	mod	github.com/chai2010/fuckgomod	(devel)	
	dep	github.com/golang/glog	v0.0.0-20160126235308-23def4e6c14b	h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
$ 

mod version is (devel):

	mod	github.com/chai2010/fuckgomod	(devel)	

https://github.com/chai2010/fuckgomod

@smasher164

This comment has been minimized.

Copy link
Member

@smasher164 smasher164 commented Dec 30, 2019

This issue seems to be a question about how to use Go, rather than a feature request or defect report about the Go language and/or toolchain. For questions about Go, please visit:

Thanks

@smasher164 smasher164 closed this Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.