]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add go statement when initializing go.mod
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Nov 2018 23:58:42 +0000 (16:58 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 10 Nov 2018 01:22:06 +0000 (01:22 +0000)
commit6887d8b1e258898db4030b10383a853b0dd96318
tree7a03809b9d0459ec3ca75cb7cba9801dae77bb0f
parent084f2eafcdc55392cf8d32f58b417b9575de001d
cmd/go: add go statement when initializing go.mod

When creating a go.mod file, add a go statement mentioning the current
Go version. We can be reasonably confident that the current version is
able to build the module. This is as described in the language
transition proposal at https://golang.org/issue/28221.

Updates #28221

Change-Id: I70a99b3a53f4b6c0288da07473c5a71bb28cd86f
Reviewed-on: https://go-review.googlesource.com/c/147281
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfile/rule.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_edit.txt
src/cmd/go/testdata/script/mod_readonly.txt
src/cmd/go/testdata/script/mod_tidy.txt