Skip to content

Commit 2440173

Browse files
committed
repos: add descriptions from golang.org/pkg/#subrepo
Updates golang/go#36047 Change-Id: I94ce5537cfd37d211f24a911bd983af436c25009 Reviewed-on: https://go-review.googlesource.com/c/build/+/211318 Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 9ff5298 commit 2440173

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

repos/repos.go

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ type Repo struct {
3333
// GitHub. If MirrorToGitHub is true, this is the
3434
// destination.
3535
gitHubRepo string
36+
37+
// WebsiteDesc is the description of the repo for showing on
38+
// https://golang.org/pkg/#subrepo.
39+
// It should be plain text. Hostnames may be auto-linkified.
40+
WebsiteDesc string
3641
}
3742

3843
// ByGerritProject maps from a Gerrit project name ("go", "net", etc)
@@ -53,31 +58,31 @@ func init() {
5358
addMirrored("sublime-config")
5459

5560
x("arch")
56-
x("benchmarks")
57-
x("blog")
58-
x("build")
59-
x("crypto")
60-
x("debug")
61+
x("benchmarks", desc("benchmarks to measure Go as it is developed"))
62+
x("blog", desc("blog.golang.org's implementation"))
63+
x("build", desc("build.golang.org's implementation"))
64+
x("crypto", desc("additional cryptography packages"))
65+
x("debug", desc("an experimental debugger for Go"))
6166
x("example", noDash)
62-
x("exp")
63-
x("image")
67+
x("exp", desc("experimental and deprecated packages (handle with care; may change without warning)"))
68+
x("image", desc("additional imaging packages"))
6469
x("lint", noDash)
65-
x("mobile")
70+
x("mobile", desc("experimental support for Go on mobile platforms"))
6671
x("mod")
67-
x("net")
72+
x("net", desc("additional networking packages"))
6873
x("oauth2")
69-
x("perf")
74+
x("perf", desc("packages and tools for performance measurement, storage, and analysis"))
7075
x("playground", noDash)
71-
x("review")
76+
x("review", desc("a tool for working with Gerrit code reviews"))
7277
x("scratch", noDash)
73-
x("sync")
74-
x("sys")
78+
x("sync", desc("additional concurrency primitives"))
79+
x("sys", desc("packages for making system calls"))
7580
x("talks")
7681
x("term")
77-
x("text")
78-
x("time")
79-
x("tools")
80-
x("tour", noDash)
82+
x("text", desc("packages for working with text"))
83+
x("time", desc("additional time packages"))
84+
x("tools", desc("godoc, goimports, gorename, and other tools"))
85+
x("tour", noDash, desc("tour.golang.org's implementation"))
8186
x("vgo", noDash)
8287
x("website")
8388
x("xerrors", noDash)
@@ -103,6 +108,8 @@ func coordinatorCanBuild(r *Repo) { r.CoordinatorCanBuild = true }
103108

104109
func importPath(v string) modifyRepo { return func(r *Repo) { r.ImportPath = v } }
105110

111+
func desc(v string) modifyRepo { return func(r *Repo) { r.WebsiteDesc = v } }
112+
106113
// addMirrored adds a repo that's on Gerrit and mirrored to GitHub.
107114
func addMirrored(proj string, opts ...modifyRepo) {
108115
repo := &Repo{

0 commit comments

Comments
 (0)