- 24 Jun, 2019 1 commit
-
-
Andrew authored
Change-Id: I8c19c6df6fec74dcc8c3bfdc667576ea00e86ec1 Reviewed-on: https://go-review.googlesource.com/c/go/+/183617 Reviewed-by:
Katie Hockman <katie@golang.org>
-
- 21 Jun, 2019 3 commits
-
-
Dmitri Shuralyov authored
Updates #30029 Updates #31457 Change-Id: I08414a544615e74afb47f7a10a00f1e22adfd40c Reviewed-on: https://go-review.googlesource.com/c/go/+/182619 Reviewed-by:
Katie Hockman <katie@golang.org>
-
Bryan C. Mills authored
Previously, most operations involving pseudo-versions allowed any arbitrary combination of version string and date, and would resolve to the underlying revision (typically a Git commit hash) as long as that revision existed. There are a number of problems with that approach: • The pseudo-version participates in minimal version selection. If its version prefix is inaccurate, the pseudo-version may appear to have higher precedence that the releases that follow it, effectively “pinning” the module to that commit. For release tags, module authors are the ones who make the decision about release tagging; they should also have control over the pseudo-version precedence within their module. • The commit date within the pseudo-version provides a total order among pseudo-versions. If it is not accurate, the pseudo-version will sort into the wrong place relative to other commits with the same version prefix. To address those problems, this change restricts the pseudo-versions that the 'go' command accepts, rendering some previously accepted-but-not-canonical versions invalid. A pseudo-version is now valid only if all of: 1. The tag from which the pseudo-version derives points to the named revision or one of its ancestors as reported by the underlying VCS tool, or the pseudo-version is not derived from any tag (that is, has a "vX.0.0-" prefix before the date string and uses the lowest major version appropriate to the module path). 2. The date string within the pseudo-version matches the UTC timestamp of the revision as reported by the underlying VCS tool. 3. The short name of the revision within the pseudo-version (such as a Git hash prefix) is the same as the short name reported by the underlying cmd/go/internal/modfetch/codehost.Repo. Specifically, if the short name is a SHA-1 prefix, it must use the same number of hex digits (12) as codehost.ShortenSHA1. 4. The pseudo-version includes a '+incompatible' suffix only if it is needed for the corresponding major version, and only if the underlying module does not have a go.mod file. We believe that all releases of the 'go' tool have generated pseudo-versions that meet these constraints. However, a few pseudo-versions edited by hand or generated by third-party tools do not. If we discover invalid-but-benign pseudo-versions in widely-used existing dependencies, we may choose to add a whitelist for those specific path/version combinations. ― To work around invalid dependencies in leaf modules, users may add a 'replace' directive from the invalid version to its valid equivalent. Note that the go command's go.mod parser automatically resolves commit hashes found in 'replace' directives to the appropriate pseudo-versions, so in most cases one can write something like: replace github.com/docker/docker v1.14.0-0.20190319215453-e7b5f7dbe98c => github.com/docker/docker e7b5f7dbe98c and then run any 'go' command (such as 'go list' or 'go mod tidy') to resolve it to an appropriate pseudo-version. Note that the invalid version will still be used in minimal version selection, so this use of 'replace' directives is an incomplete workaround. ― One of the common use cases for higher-than-tagged pseudo-versions is for projects that do parallel development on release branches. For example, if a project cuts a 'v1.2' release branch at v1.2.0, they may want future commits on the main branch to show up as pre-releases for v1.3.0 rather than for v1.2.1 — especially if v1.2.1 is already tagged on the release branch. (On the other hand, a backport of a patch to the v1.2 branch should not show up as a pre-release for v1.3.0.) To address this use-case, module authors can make use of our existing support for pseudo-versions derived from pre-release tags: if the author adds an explicit pre-release tag (such as 'v1.3.0-devel') to the first commit after the branch, then the pseudo-versions for that commit and its descendents will be derived from that tag and will sort appropriately in version selection. ― Updates #27171 Fixes #29262 Fixes #27173 Fixes #32662 Fixes #32695 Change-Id: I0d50a538b6fdb0d3080aca9c9c3df1040da1b329 Reviewed-on: https://go-review.googlesource.com/c/go/+/181881 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by:
Jay Conrod <jayconrod@google.com>
-
Robert Griesemer authored
Change-Id: I2230a97c681406f248b7f2fff45dd80a4b54a4b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/183357 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 19 Jun, 2019 3 commits
-
-
Andrew authored
Change-Id: I4ddbe22061579383ca47e14d0b64a74365fb3d19 Reviewed-on: https://go-review.googlesource.com/c/go/+/182797 Reviewed-by:
Katie Hockman <katie@golang.org>
-
Austin Clements authored
Change-Id: I6338bba2a86fb27421f91203a04b39830bae1e52 Reviewed-on: https://go-review.googlesource.com/c/go/+/182800 Reviewed-by:
Cherry Zhang <cherryyz@google.com> Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
Robert Griesemer authored
Change-Id: I17b156e77f279e1387ad27ab0e41ae8f50c9a325 Reviewed-on: https://go-review.googlesource.com/c/go/+/182857 Reviewed-by:
Ian Lance Taylor <iant@golang.org> Reviewed-by:
Austin Clements <austin@google.com>
-
- 18 Jun, 2019 4 commits
-
-
Filippo Valsorda authored
Change-Id: I05d4ff3d3a31f56c9ceebdaceb39535a1351b26a Reviewed-on: https://go-review.googlesource.com/c/go/+/182701 Reviewed-by:
Andrew Bonventre <andybons@golang.org>
-
Andrew authored
Change-Id: I54dc8afc33d6f8946d2c79b0339118fa3710a688 Reviewed-on: https://go-review.googlesource.com/c/go/+/182618 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
Austin Clements authored
Change-Id: Icc5083a3de0c6b737bfc20b573ed785651910148 Reviewed-on: https://go-review.googlesource.com/c/go/+/182461 Reviewed-by:
Andrew Bonventre <andybons@golang.org>
-
Josh Bleecher Snyder authored
There is a subtle distinction between a value *being* the zero value vs being *equal to* the zero value. This was discussed at length in #31450. Using "a zero value" in the docs suggests that there may be more than zero value. That is possible on the "equal to zero value" reading, but not the "is zero" reading that we selected for the semantics of IsZero. This change attempts to prevent any confusion on this front by switching to "the zero value" in the documentation. And while we're here, eliminate a double-space. (Darn macbook keyboards.) Change-Id: Iaa02ba297438793f5a90be9919a4d53baef92f8e Reviewed-on: https://go-review.googlesource.com/c/go/+/182617 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org>
-
- 17 Jun, 2019 1 commit
-
-
Keith Randall authored
Write release notes for a few reflect, runtime, and syscall changes. The init randomization has been reverted. Change-Id: Idae481ca015e325eb7302abaa15b2792312f4c32 Reviewed-on: https://go-review.googlesource.com/c/go/+/181577 Reviewed-by:
Austin Clements <austin@google.com>
-
- 14 Jun, 2019 3 commits
-
-
Katie Hockman authored
Change-Id: I0ee4b4f0211cd12803ab33976669350d9dd615f3 Reviewed-on: https://go-review.googlesource.com/c/go/+/181944 Reviewed-by:
Andrew Bonventre <andybons@golang.org>
-
Julie authored
Change-Id: Ifd330053094c172b7dcd9086da173289efc7f9b8 Reviewed-on: https://go-review.googlesource.com/c/go/+/181942 Reviewed-by:
Katie Hockman <katie@golang.org> Reviewed-by:
Andrew Bonventre <andybons@golang.org>
-
Julie authored
Change-Id: I4c52d9bcf941810dbdfdd39e7f339c8283d6bcc7 Reviewed-on: https://go-review.googlesource.com/c/go/+/181937 Reviewed-by:
Katie Hockman <katie@golang.org>
-
- 13 Jun, 2019 4 commits
-
-
Katie Hockman authored
Change-Id: I2a0bd295ad9737581d149a7165191b878ae2acda Reviewed-on: https://go-review.googlesource.com/c/go/+/181880 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
Julie authored
Change-Id: I71a6816f54f8ad0f8531bb3f9de552fd136a0ed4 Reviewed-on: https://go-review.googlesource.com/c/go/+/181943 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
Julie authored
Change-Id: Ifdc3c5b840e6833f14c8e52948e45d5faa5a0615 Reviewed-on: https://go-review.googlesource.com/c/go/+/181940 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
Dmitri Shuralyov authored
This change makes the release notes for Go 1.13 more complete by mentioning a new function in the os package. Change-Id: I0d637fd70ff6d14782bbfb7c13985a0f83b19d6d Reviewed-on: https://go-review.googlesource.com/c/go/+/181945 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 12 Jun, 2019 4 commits
-
-
Katie Hockman authored
Change-Id: Ib5417cc48959b03befb1579da3281415a11ede9f Reviewed-on: https://go-review.googlesource.com/c/go/+/181879 Reviewed-by:
Dmitri Shuralyov <dmitshur@golang.org>
-
Julie authored
Change-Id: I032a3342c3ac899a39d357420b981b6f281518f6 Reviewed-on: https://go-review.googlesource.com/c/go/+/181939 Reviewed-by:
Daniel Theophanes <kardianos@gmail.com>
-
Katie Hockman authored
Change-Id: I49b09349a632a6b6219c85638d9cb6774c0c210a Reviewed-on: https://go-review.googlesource.com/c/go/+/181721 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
Andrew Bonventre authored
Change-Id: Idb5bf2a61bff635e3ebd926bdeacf943578ac874 Reviewed-on: https://go-review.googlesource.com/c/go/+/181681 Reviewed-by:
Ian Lance Taylor <iant@golang.org> Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
- 11 Jun, 2019 2 commits
-
-
Katie Hockman authored
Change-Id: I4923f0726ae0261a7c7b0f85e7433ae0f605c123 Reviewed-on: https://go-review.googlesource.com/c/go/+/181738 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
Andrew Bonventre authored
Change-Id: I34fd45ee252474c12f2e9c8d9b1a75b9eabb57f2 Reviewed-on: https://go-review.googlesource.com/c/go/+/181549 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
- 10 Jun, 2019 1 commit
-
-
Andrew Bonventre authored
Change-Id: I684e3522e387b2d96d5cfb2878d2f77bf4558443 Reviewed-on: https://go-review.googlesource.com/c/go/+/181545 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
- 05 Jun, 2019 2 commits
-
-
Ian Lance Taylor authored
It was rolled back. Change-Id: I8372bb7e11bab7be242f4af7093a73d2fa093067 Reviewed-on: https://go-review.googlesource.com/c/go/+/180760 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org>
-
Andrew Bonventre authored
The additions were generated using golang.org/x/build/cmd/relnote. Change-Id: Ie7322f7d01a2dd4a7bca89b9ef9c1ce93bc2671a Reviewed-on: https://go-review.googlesource.com/c/go/+/180778 Reviewed-by:
Bryan C. Mills <bcmills@google.com>
-
- 02 May, 2019 1 commit
-
-
Russ Cox authored
For #23011. For #27619. Change-Id: Id1f280993ecdfb07a7420926ca1c0f5b7872afbb Reviewed-on: https://go-review.googlesource.com/c/go/+/174521 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org>
-