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

$ 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
Copy link
Member

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

@golang golang locked and limited conversation to collaborators Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants