From 02a0827d7960d0c828fad57b11c02794dec50552 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Wed, 5 Dec 2018 16:33:56 -0500 Subject: [PATCH] doc: 1.12 release notes for cmd/go Change-Id: I1a0bedc9fbd42e138eb68af8365115339e377856 Reviewed-on: https://go-review.googlesource.com/c/152742 Reviewed-by: Ian Lance Taylor --- doc/go1.12.html | 72 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 60 insertions(+), 12 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index 3afe21f3f9..3779c22a9d 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -54,6 +54,25 @@ Go 1.12 is the last release that will run on macOS 10.10 Yosemite. Go 1.13 will require macOS 10.11 El Capitan or later.

+

Windows

+ +

+ TODO: status of ARM32 port? +

+ +

AIX

+ +

+ TODO: status of AIX port? +

+ +

Hurd

+ +

+ hurd is now a recognized value for GOOS, reserved + for the GNU/Hurd system for use with gccgo. +

+

Tools

go tool vet no longer supported

@@ -79,6 +98,40 @@ Go 1.13 will require macOS 10.11 El Capitan or later. has no effect in Go 1.12.

+

Modules

+ +

+ When GO111MODULE is set to on, the go + command now supports module-aware operations outside of a module directory, + provided that those operations do not need to resolve import paths relative to + the current directory or explicitly edit the go.mod file. + Commands such as go get, + go list, and + go mod download behave as if in a + module with initially-empty requirements. + In this mode, go env GOMOD reports + the system's null device (/dev/null or NUL). +

+ +

+ go commands that download and extract modules are now safe to + invoke concurrently. + The module cache (GOPATH/pkg/mod) must reside in a filesystem that + supports file locking. +

+ +

+ The go directive in a go.mod file now indicates the + version of the language used by the files within that module, and + go mod tidy sets it to the + current release (go 1.12) if no existing + version is present. + If the go directive for a module specifies a + version newer than the toolchain in use, the go command + will attempt to build the packages regardless, and will note the mismatch only if + that build fails. +

+

Compiler toolchain

@@ -121,6 +174,13 @@ for {

+

+ The compiler now accepts a -lang flag to set the Go language + version to use. For example, -lang=go1.8 causes the compiler to + emit an error if the program uses type aliases, which were added in Go 1.9. + Language changes made before Go 1.12 are not consistently enforced. +

+

Godoc

@@ -146,12 +206,8 @@ for { - - - - @@ -259,14 +315,6 @@ for { -

go/build, cmd/go
-
-

- TODO: https://golang.org/cl/146023: add "hurd" as a GOOS value -

- -
-
go/doc

-- 2.50.0