]> Cypherpunks repositories - gostls13.git/commit
cmd/go: relax version regexp from CL 547998
authorBryan C. Mills <bcmills@google.com>
Fri, 8 Dec 2023 17:20:35 +0000 (12:20 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 8 Dec 2023 18:34:24 +0000 (18:34 +0000)
commit6cdf2ccae8a30b20c82bf01e7989f0971d1a4764
treeb91d1c33cde300d1feffde6b498b10d99b5c4614
parent78b42a5338aa1fa293acc5bbb7ef9122a7acc2ba
cmd/go: relax version regexp from CL 547998

In CL 547998 I relaxed cmd/go's parsing of version lines to allow it
to recognize clang versions with vendor prefixes. To prevent false-positives,
I added a check for a version 3-tuple following the word "version".
However, it appears that some releases of GCC use only a 2-tuple instead.

Updates #64423.
Fixes #64619.

Change-Id: I5f1d0881b6295544a46ab958c6ad4c2155cf51fe
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/548120
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/buildid.go