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: what is the go 1.12 statement that go mod tidy is generating in my go.mod? #30603

Closed
jeanbza opened this issue Mar 5, 2019 · 3 comments

Comments

@jeanbza
Copy link
Member

jeanbza commented Mar 5, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12rc1 linux/amd64

go mod tidy generates a go.mod as such:

module github.com/googleapis/google-cloud-go-testing

go 1.12

require (
	cloud.google.com/go v0.36.0
	golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f
	golang.org/x/tools v0.0.0-20190305160728-f8c04913dfb7
	google.golang.org/api v0.1.0
	honnef.co/go/tools v0.0.0-20190215041234-466a0476246c
)

I can guess that go 1.12 is requiring users to use Go 1.12 or greater, but is this documented in a specification somewhere? Where can I read more about this?

@bradfitz
Copy link
Contributor

bradfitz commented Mar 5, 2019

It's documented at https://golang.org/cmd/go/#hdr-The_go_mod_file

@bradfitz bradfitz closed this as completed Mar 5, 2019
@ianlancetaylor
Copy link
Contributor

See also #28221.

@jeanbza
Copy link
Member Author

jeanbza commented Mar 5, 2019

Thank you!

@golang golang locked and limited conversation to collaborators Mar 4, 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

4 participants