1. 15 Feb, 2019 2 commits
    • Bryan C. Mills's avatar
      cmd/go: only generate a go.mod file during 'go mod init' · 65c2069a
      Bryan C. Mills authored
      In the general case, we do not know the correct module path for a new
      module unless we have checked its VCS tags for a major version. If we
      do not know the correct path, then we should not synthesize a go.mod
      file automatically from it.
      
      On the other hand, we don't want to run VCS commands in the working
      directory without an explicit request by the user to do so: 'go mod
      init' can reasonably invoke a VCS command, but 'go build' should not.
      
      Therefore, we should only create a go.mod file during 'go mod init'.
      
      This change removes the previous behavior of synthesizing a file
      automatically, and instead suggests a command that the user can opt to
      run explicitly.
      
      Updates #29433
      Updates #27009
      Updates #30228
      
      Change-Id: I8c4554969db17156e97428df220b129a4d361040
      Reviewed-on: https://go-review.googlesource.com/c/162699
      Run-TryBot: Bryan C. Mills <bcmills@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
      65c2069a
    • Zhou Peng's avatar
      database/sql/driver: fix typo · 4c89a10f
      Zhou Peng authored
      Change-Id: I6e7035db4b3e2a09e5655eb7646eea9d99fb7118
      Reviewed-on: https://go-review.googlesource.com/c/162917Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      4c89a10f
  2. 13 Feb, 2019 5 commits
  3. 12 Feb, 2019 8 commits
  4. 11 Feb, 2019 13 commits
  5. 10 Feb, 2019 1 commit
    • Daniel Martí's avatar
      doc: remove last pieces of advice to set GOROOT · e1b49ad6
      Daniel Martí authored
      install.html still insisted that GOROOT must be set if a binary install
      of Go is set up in a custom directory. However, since 1.10, this has
      been unnecessary as the GOROOT will be found based on the location of
      the 'go' binary being run.
      
      Likewise, install-source.html includes an 'export GOROOT' line in a
      section that only talks about explicitly setting GOARCH and GOOS, which
      is optional. We don't want to have users think it is recommended to set
      GOROOT here either, so remove the unnecessary line.
      
      Change-Id: I7dfef09f9a1d003e0253b793d63ea40d5cf1837f
      Reviewed-on: https://go-review.googlesource.com/c/161758Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      e1b49ad6
  6. 09 Feb, 2019 2 commits
  7. 08 Feb, 2019 1 commit
  8. 07 Feb, 2019 3 commits
  9. 06 Feb, 2019 1 commit
  10. 05 Feb, 2019 3 commits
  11. 04 Feb, 2019 1 commit