]> Cypherpunks repositories - gostls13.git/commit
cmd/go: always add 'go' directive to the go.mod file if missing
authorBryan C. Mills <bcmills@google.com>
Wed, 15 May 2019 14:12:07 +0000 (10:12 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 16 May 2019 17:47:34 +0000 (17:47 +0000)
commit48b7bdd0d74f6a06cd095cc8b15fe6ec5c4a2aee
tree8ae741d7444283d128ef2ed17faad0c607dbbb1f
parente7b7f874323bf105bebaf92db23fc4ba6f5c5257
cmd/go: always add 'go' directive to the go.mod file if missing

Updates #30790
Fixes #31960

Change-Id: Ib3ac074cf1f98fe69f53af82d2a0441582116570
Reviewed-on: https://go-review.googlesource.com/c/go/+/176925
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modcmd/tidy.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_file_proxy.txt
src/cmd/go/testdata/script/mod_init_empty.txt
src/cmd/go/testdata/script/mod_load_badchain.txt