Skip to content

Commit c6411bd

Browse files
committed
internal/task: update the go1.23rc1 announcement to mention gopls
As of writing, it looks like we may not have [email protected] released prior to go1.23rc1. Therefore, we should inform users that they must install the gopls prerelease in order to test Go 1.23. Also simplify instructions by using the go1.23rc1 command from the command line. In the future, we should revert to the prior wording, and remove mention of go1.23rc1, just suggesting "at least Go 1.23". Also, use fenced code blocks for the command line instructions, as without these the installation line for gopls@v is linkified as a mailto: address. For consistency, do the same for other announcement emails. Fixes golang/go#67618 Change-Id: I64ac4fd9b0622683fc35ecddd9147d270e49471d Reviewed-on: https://go-review.googlesource.com/c/build/+/593055 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 73ba421 commit c6411bd

9 files changed

+64
-29
lines changed

internal/task/announce_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ This is CVE-2022-27536 and https://go.dev/issue/51759.`,
104104
name: "announce-rc",
105105
in: releaseAnnouncement{
106106
Kind: KindRC,
107-
Version: "go1.23rc3",
107+
Version: "go1.23rc1",
108108
},
109-
wantSubject: "Go 1.23 Release Candidate 3 is released",
109+
wantSubject: "Go 1.23 Release Candidate 1 is released",
110110
},
111111
{
112112
name: "announce-major",

internal/task/template/announce-beta.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ https://go.dev/issue/new
1313

1414
If you have Go installed already, an easy way to try {{.Version}}
1515
is by using the go command:
16+
17+
```
1618
$ go install golang.org/dl/{{.Version}}@latest
1719
$ {{.Version}} download
20+
```
1821

1922
You can download binary and source distributions from the usual place:
2023
https://go.dev/dl/#{{.Version}}

internal/task/template/announce-major.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ https://go.dev/dl/#{{.Version}}
1313
If you have Go installed already, an easy way to try {{.Version}}
1414
is by using the go command:
1515

16+
```
1617
$ go install golang.org/dl/{{.Version}}@latest
1718
$ {{.Version}} download
19+
```
1820

1921
To compile from source using a Git clone, update to the release with
2022
`git checkout {{.Version}}` and build as usual.

internal/task/template/announce-rc.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,37 @@ https://go.dev/issue/new
1414
If you have Go installed already, an easy way to try {{.Version}}
1515
is by using the go command:
1616

17+
```
1718
$ go install golang.org/dl/{{.Version}}@latest
1819
$ {{.Version}} download
20+
```
1921

2022
You can download binary and source distributions from the usual place:
2123
https://go.dev/dl/#{{.Version}}
2224

23-
{{ if atLeast .Version "go1.23" }}
25+
{{/* TODO(rfindley): update the go1.23rc1 sections once Go 1.23 is out. */ -}}
26+
27+
{{ if eq .Version "go1.23rc1" }}
2428
To help validate the release, consider opting in to [Go toolchain telemetry](https://go.dev/doc/telemetry).
25-
If you're using go command version go1.23rc1 or later, you can opt in by
26-
running the following command:
29+
You can opt in by running the following command:
2730

28-
$ go telemetry on
31+
```
32+
$ go1.23rc1 telemetry on
33+
```
2934

3035
{{ end -}}
3136

37+
{{ if eq .Version "go1.23rc1" }}
38+
If you use the gopls language server in your development workflow, please note
39+
that gopls v0.16.0-pre.1 is currently required for this release candidate.
40+
Install it with:
41+
42+
```
43+
$ go1.23rc1 install golang.org/x/tools/[email protected]
44+
```
45+
46+
{{end -}}
47+
3248
To find out what has changed in Go {{.Version|major}}, read the draft release notes:
3349
https://tip.golang.org/doc/go{{.Version|major}}
3450

internal/task/testdata/announce-beta.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
<p>Report any problems using the issue tracker:<br>
77
<a href="https://go.dev/issue/new">https://go.dev/issue/new</a></p>
88
<p>If you have Go installed already, an easy way to try go1.19beta5<br>
9-
is by using the go command:<br>
10-
$ go install golang.org/dl/go1.19beta5@latest<br>
11-
$ go1.19beta5 download</p>
9+
is by using the go command:</p>
10+
<pre><code>$ go install golang.org/dl/go1.19beta5@latest
11+
$ go1.19beta5 download
12+
</code></pre>
1213
<p>You can download binary and source distributions from the usual place:<br>
1314
<a href="https://go.dev/dl/#go1.19beta5">https://go.dev/dl/#go1.19beta5</a></p>
1415
<p>To find out what has changed in Go 1.19, read the draft release notes:<br>

internal/task/testdata/announce-beta.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ https://go.dev/issue/new
1111

1212
If you have Go installed already, an easy way to try go1.19beta5
1313
is by using the go command:
14+
1415
$ go install golang.org/dl/go1.19beta5@latest
1516
$ go1.19beta5 download
1617

internal/task/testdata/announce-major.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
<a href="https://go.dev/dl/#go1.21.0">https://go.dev/dl/#go1.21.0</a></p>
77
<p>If you have Go installed already, an easy way to try go1.21.0<br>
88
is by using the go command:</p>
9-
<p>$ go install golang.org/dl/go1.21.0@latest<br>
10-
$ go1.21.0 download</p>
9+
<pre><code>$ go install golang.org/dl/go1.21.0@latest
10+
$ go1.21.0 download
11+
</code></pre>
1112
<p>To compile from source using a Git clone, update to the release with<br>
1213
<code>git checkout go1.21.0</code> and build as usual.</p>
1314
<p>Thanks to everyone who contributed to the release!</p>

internal/task/testdata/announce-rc.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
<p>Hello gophers,</p>
2-
<p>We have just released go1.23rc3, a release candidate version of Go 1.23.<br>
3-
It is cut from release-branch.go1.23 at the revision tagged go1.23rc3.</p>
2+
<p>We have just released go1.23rc1, a release candidate version of Go 1.23.<br>
3+
It is cut from release-branch.go1.23 at the revision tagged go1.23rc1.</p>
44
<p>Please try your production load tests and unit tests with the new version.<br>
55
Your help testing these pre-release versions is invaluable.</p>
66
<p>Report any problems using the issue tracker:<br>
77
<a href="https://go.dev/issue/new">https://go.dev/issue/new</a></p>
8-
<p>If you have Go installed already, an easy way to try go1.23rc3<br>
8+
<p>If you have Go installed already, an easy way to try go1.23rc1<br>
99
is by using the go command:</p>
10-
<p>$ go install golang.org/dl/go1.23rc3@latest<br>
11-
$ go1.23rc3 download</p>
10+
<pre><code>$ go install golang.org/dl/go1.23rc1@latest
11+
$ go1.23rc1 download
12+
</code></pre>
1213
<p>You can download binary and source distributions from the usual place:<br>
13-
<a href="https://go.dev/dl/#go1.23rc3">https://go.dev/dl/#go1.23rc3</a></p>
14+
<a href="https://go.dev/dl/#go1.23rc1">https://go.dev/dl/#go1.23rc1</a></p>
1415
<p>To help validate the release, consider opting in to <a href="https://go.dev/doc/telemetry">Go toolchain telemetry</a>.<br>
15-
If you're using go command version go1.23rc1 or later, you can opt in by<br>
16-
running the following command:</p>
17-
<p>$ go telemetry on</p>
16+
You can opt in by running the following command:</p>
17+
<pre><code>$ go1.23rc1 telemetry on
18+
</code></pre>
19+
<p>If you use the gopls language server in your development workflow, please note<br>
20+
that gopls v0.16.0-pre.1 is currently required for this release candidate.<br>
21+
Install it with:</p>
22+
<pre><code>$ go1.23rc1 install golang.org/x/tools/[email protected]
23+
</code></pre>
1824
<p>To find out what has changed in Go 1.23, read the draft release notes:<br>
1925
<a href="https://tip.golang.org/doc/go1.23">https://tip.golang.org/doc/go1.23</a></p>
2026
<p>Cheers,<br>

internal/task/testdata/announce-rc.txt

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
Hello gophers,
22

3-
We have just released go1.23rc3, a release candidate version of Go 1.23.
4-
It is cut from release-branch.go1.23 at the revision tagged go1.23rc3.
3+
We have just released go1.23rc1, a release candidate version of Go 1.23.
4+
It is cut from release-branch.go1.23 at the revision tagged go1.23rc1.
55

66
Please try your production load tests and unit tests with the new version.
77
Your help testing these pre-release versions is invaluable.
88

99
Report any problems using the issue tracker:
1010
https://go.dev/issue/new
1111

12-
If you have Go installed already, an easy way to try go1.23rc3
12+
If you have Go installed already, an easy way to try go1.23rc1
1313
is by using the go command:
1414

15-
$ go install golang.org/dl/go1.23rc3@latest
16-
$ go1.23rc3 download
15+
$ go install golang.org/dl/go1.23rc1@latest
16+
$ go1.23rc1 download
1717

1818
You can download binary and source distributions from the usual place:
19-
https://go.dev/dl/#go1.23rc3
19+
https://go.dev/dl/#go1.23rc1
2020

2121
To help validate the release, consider opting in to Go toolchain telemetry <https://go.dev/doc/telemetry>.
22-
If you're using go command version go1.23rc1 or later, you can opt in by
23-
running the following command:
22+
You can opt in by running the following command:
2423

25-
$ go telemetry on
24+
$ go1.23rc1 telemetry on
25+
26+
If you use the gopls language server in your development workflow, please note
27+
that gopls v0.16.0-pre.1 is currently required for this release candidate.
28+
Install it with:
29+
30+
$ go1.23rc1 install golang.org/x/tools/[email protected]
2631

2732
To find out what has changed in Go 1.23, read the draft release notes:
2833
https://tip.golang.org/doc/go1.23

0 commit comments

Comments
 (0)