Skip to content

Commit d533680

Browse files
committed
Merge branch 'master' into feature/internal-msan
Change-Id: Ia17d43fa26189110ebba32388e2bbb5aede430a1
2 parents ac00e16 + b91bad7 commit d533680

File tree

553 files changed

+91621
-3206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+91621
-3206
lines changed

.github/ISSUE_TEMPLATE/00-bug.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ body:
2323
required: true
2424

2525
- type: textarea
26-
id: os-and-processor
26+
id: go-env
2727
attributes:
28-
label: "What operating system and processor architecture are you using (`go env`)?"
28+
label: "Output of `go env` in your module/workspace:"
2929
placeholder: |
3030
GO111MODULE=""
3131
GOARCH="arm64"
@@ -78,16 +78,17 @@ body:
7878
required: true
7979

8080
- type: textarea
81-
id: expected-behavior
81+
id: actual-behavior
8282
attributes:
83-
label: "What did you expect to see?"
83+
label: "What did you see happen?"
84+
description: Command invocations and their associated output, functions with their arguments and return results, full stacktraces for panics (upload a file if it is very long), etc. Prefer copying text output over using screenshots.
8485
validations:
8586
required: true
8687

8788
- type: textarea
88-
id: actual-behavior
89+
id: expected-behavior
8990
attributes:
90-
label: "What did you see instead?"
91+
label: "What did you expect to see?"
92+
description: Why is the current output incorrect, and any additional context we may need to understand the issue.
9193
validations:
9294
required: true
93-

.github/ISSUE_TEMPLATE/01-pkgsite.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ body:
3434
validations:
3535
required: true
3636
- type: textarea
37-
id: expected-behavior
37+
id: actual-behavior
3838
attributes:
39-
label: "What did you expect to see?"
39+
label: "What did you see happen?"
4040
validations:
4141
required: true
4242
- type: textarea
43-
id: actual-behavior
43+
id: expected-behavior
4444
attributes:
45-
label: "What did you see instead?"
45+
label: "What did you expect to see?"
4646
validations:
4747
required: true

.github/ISSUE_TEMPLATE/02-pkgsite-removal.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,33 @@ body:
1010
id: package-path
1111
attributes:
1212
label: "What is the path of the package that you would like to have removed?"
13-
description: "We can remove packages with a shared path prefix. For example, a request for 'github.com/author' would remove all pkg.go.dev pages with that package path prefix."
13+
description: |
14+
We can remove packages with a shared path prefix.
15+
For example, a request for 'github.com/author' would remove all pkg.go.dev pages with that package path prefix.
1416
validations:
1517
required: true
1618
- type: textarea
1719
id: package-owner
1820
attributes:
1921
label: "Are you the owner of this package?"
20-
description: "Only the package owners can request to have their packages removed from pkg.go.dev."
22+
description: |
23+
Only the package owners can request to have their packages removed from pkg.go.dev.
24+
If the package path doesn't include your github username, please provide some other form of proof of ownership.
2125
validations:
2226
required: true
2327
- type: textarea
2428
id: retraction-reason
2529
attributes:
2630
label: "What is the reason that you could not retract this package instead?"
27-
description: "If you would like to have your module removed from pkg.go.dev, we recommend that you retract them, so that they can be removed from the go command and proxy.golang.org as well. Retracting a module version involves adding a retract directive to your go.mod file and publishing a new version. For example: https://github.com/jba/retract-demo/blob/main/go.mod#L5-L8. See https://pkg.go.dev/about#removing-a-package for additional tips on retractions."
31+
description: |
32+
Requesting we remove a module here only hides the generated documentation on pkg.go.dev.
33+
It does not affect the behaviour of proxy.golang.org or the go command.
34+
Instead we recommend using the retract directive which will be processed by all 3 of the above.
35+
36+
If you have deleted your repo, please recreate it and publish a retraction.
37+
38+
Retracting a module version involves adding a retract directive to your go.mod file and publishing a new version.
39+
For example: https://github.com/jba/retract-demo/blob/main/go.mod#L5-L8.
40+
See https://pkg.go.dev/about#removing-a-package for additional tips on retractions.
2841
validations:
2942
required: true

.github/ISSUE_TEMPLATE/03-gopls.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ body:
2525
id: what-did-you-do
2626
attributes:
2727
label: "What did you do?"
28-
description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on go.dev/play is better. A failing unit test is the best."
28+
description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is better. A failing unit test is the best."
2929
validations:
3030
required: true
3131
- type: textarea
32-
id: expected-behavior
32+
id: actual-behavior
3333
attributes:
34-
label: "What did you expect to see?"
34+
label: "What did you see happen?"
3535
validations:
3636
required: true
3737
- type: textarea
38-
id: actual-behavior
38+
id: expected-behavior
3939
attributes:
40-
label: "What did you see instead?"
40+
label: "What did you expect to see?"
4141
validations:
4242
required: true
4343
- type: textarea

.github/ISSUE_TEMPLATE/04-vuln.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
- type: markdown
77
attributes:
88
value: "Please answer these questions before submitting your issue. Thanks! To add a new vulnerability to the Go vulnerability database (https://vuln.go.dev), see https://go.dev/s/vulndb-report-new. To report an issue about a report, see https://go.dev/s/vulndb-report-feedback."
9-
- type: input
9+
- type: textarea
1010
id: govulncheck-version
1111
attributes:
1212
label: govulncheck version
@@ -25,9 +25,9 @@ body:
2525
validations:
2626
required: true
2727
- type: textarea
28-
id: os-and-processor
28+
id: go-env
2929
attributes:
30-
label: "What operating system and processor architecture are you using (`go env`)?"
30+
label: "Output of `go env` in your module/workspace:"
3131
render: shell
3232
validations:
3333
required: true
@@ -39,14 +39,14 @@ body:
3939
validations:
4040
required: true
4141
- type: textarea
42-
id: expected-behavior
42+
id: actual-behavior
4343
attributes:
44-
label: "What did you expect to see?"
44+
label: "What did you see happen?"
4545
validations:
4646
required: true
4747
- type: textarea
48-
id: actual-behavior
48+
id: expected-behavior
4949
attributes:
50-
label: "What did you see instead?"
50+
label: "What did you expect to see?"
5151
validations:
5252
required: true

api/go1.22.txt

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
pkg archive/tar, method (*Writer) AddFS(fs.FS) error #58000
2-
pkg archive/tar, type FileInfoNames interface { Gname, IsDir, ModTime, Mode, Name, Size, Sys, Uname } #50102
3-
pkg archive/tar, type FileInfoNames interface, Gname(int) (string, error) #50102
4-
pkg archive/tar, type FileInfoNames interface, IsDir() bool #50102
5-
pkg archive/tar, type FileInfoNames interface, ModTime() time.Time #50102
6-
pkg archive/tar, type FileInfoNames interface, Mode() fs.FileMode #50102
7-
pkg archive/tar, type FileInfoNames interface, Name() string #50102
8-
pkg archive/tar, type FileInfoNames interface, Size() int64 #50102
9-
pkg archive/tar, type FileInfoNames interface, Sys() interface{} #50102
10-
pkg archive/tar, type FileInfoNames interface, Uname(int) (string, error) #50102
112
pkg archive/zip, method (*Writer) AddFS(fs.FS) error #54898
123
pkg cmp, func Or[$0 comparable](...$0) $0 #60204
134
pkg crypto/x509, func OIDFromInts([]uint64) (OID, error) #60665
@@ -131,7 +122,6 @@ pkg net/http, func ServeFileFS(ResponseWriter, *Request, fs.FS, string) #51971
131122
pkg net/http, method (*Request) PathValue(string) string #61410
132123
pkg net/http, method (*Request) SetPathValue(string, string) #61410
133124
pkg net/netip, method (AddrPort) Compare(AddrPort) int #61642
134-
pkg net/netip, method (Prefix) Compare(Prefix) int #61642
135125
pkg os, method (*File) WriteTo(io.Writer) (int64, error) #58808
136126
pkg reflect, func PtrTo //deprecated #59599
137127
pkg reflect, func TypeFor[$0 interface{}]() Type #60088

doc/README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Release Notes
2+
3+
The `initial` and `next` subdirectories of this directory are for release notes.
4+
5+
## For developers
6+
7+
Release notes should be added to `next` by editing existing files or creating new files.
8+
9+
At the end of the development cycle, the files will be merged by being
10+
concatenated in sorted order by pathname. Files in the directory matching the
11+
glob "*stdlib/*minor" are treated specially. They should be in subdirectories
12+
corresponding to standard library package paths, and headings for those package
13+
paths will be generated automatically.
14+
15+
Files in this repo's `api/next` directory must have corresponding files in
16+
`*stdlib/*minor`. The files should be in the subdirectory for the package with
17+
the new API, and should be named after the issue number of the API proposal. For
18+
example, an `api/next` file with the line
19+
20+
pkg net/http, function F #12345
21+
22+
should have a corresponding file named `net/http/12345.md`.
23+
At a minimum, that file should contain either a full sentence or a TODO,
24+
ideally referring to a person with the responsibility to complete the note.
25+
26+
## For the release team
27+
28+
At the start of a release development cycle, the contents of `next` should be deleted
29+
and replaced with those of `initial`. From the repo root:
30+
31+
> cd doc
32+
> rm -r next/*
33+
> cp -r initial/* next
34+
35+
Then edit `next/1-intro.md` to refer to the next version.
36+
37+
To prepare the release notes for a release, run `golang.org/x/build/cmd/relnote generate`.
38+
That will merge the `.md` files in `next` into a single file.

doc/go1.17_spec.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
<h2 id="Introduction">Introduction</h2>
88

99
<p>
10-
This is a reference manual for the Go programming language. For
11-
more information and other documents, see <a href="/">go.dev</a>.
10+
This is the reference manual for the Go programming language as it was for
11+
language version 1.17, in October 2021, before the introduction of generics.
12+
It is provided for historical interest.
13+
The current reference manual can be found <a href="/doc/go_spec.html">here</a>.
14+
For more information and other documents, see <a href="/">go.dev</a>.
1215
</p>
1316

1417
<p>

0 commit comments

Comments
 (0)