aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/unit.go
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/postgres/unit.go
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/postgres/unit.go')
-rw-r--r--internal/postgres/unit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/postgres/unit.go b/internal/postgres/unit.go
index baed7ca7..46638a21 100644
--- a/internal/postgres/unit.go
+++ b/internal/postgres/unit.go
@@ -410,7 +410,7 @@ func (db *DB) getUnitWithAllFields(ctx context.Context, um *internal.UnitMeta) (
case sql.ErrNoRows:
return nil, derrors.NotFound
case nil:
- if r.Filepath != "" {
+ if r.Filepath != "" && um.ModulePath != stdlib.ModulePath {
u.Readme = &r
}
default: