aboutsummaryrefslogtreecommitdiff
path: root/internal/testing
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2021-02-26 13:16:21 -0500
committerJulie Qiu <julie@golang.org>2021-03-01 16:58:54 +0000
commit7e7858473f8e9ff87873cd445a7403181346f6db (patch)
tree994e2cb4f290ce457c14e60bb6621af3c6e50e8f /internal/testing
parent17f3cfb711f246930a1ef6a40591ea1965c093b6 (diff)
downloadgo-x-pkgsite-7e7858473f8e9ff87873cd445a7403181346f6db.tar.xz
internal: do not display README at /std
The README is no longer displayed at pkg.go.dev/std. It is also no longer stored in the database when a std module is fetched. For golang/go#44356 Change-Id: I6b1605389bc3c97694b6ec2b06e28006a38be999 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/296950 Trust: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/testing')
-rw-r--r--internal/testing/sample/sample.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index cf11748f..c9f3eb6f 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -175,6 +175,9 @@ func Module(modulePath, version string, suffixes ...string) *internal.Module {
m.Units[0].Name = u.Name
}
}
+ if modulePath == stdlib.ModulePath {
+ m.Units[0].Readme = nil
+ }
// Fill in license contents.
for _, u := range m.Units {
u.LicenseContents = m.Licenses