aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/unit.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2021-06-23 16:36:40 -0700
committerJulie Qiu <julie@golang.org>2021-07-12 21:13:20 +0000
commite6b30bf2f78149bbea1ef607321cdeed1010abc5 (patch)
treefe76ed9ca0f6a83124a1130e797c2da10c04fcfc /internal/postgres/unit.go
parent738f3de8876e8c3c274b30b830ab079466e44ae7 (diff)
downloadgo-x-pkgsite-e6b30bf2f78149bbea1ef607321cdeed1010abc5.tar.xz
internal: support std@dev.fuzz
It is now possible to fetch std@dev.fuzz and view /std@dev.fuzz on the frontend. For golang/go#46910 Change-Id: I2fd7259840ba32ff35ca323d07412988e533ffba Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/330413 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> 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 1ed80d5d..2f7fccf9 100644
--- a/internal/postgres/unit.go
+++ b/internal/postgres/unit.go
@@ -71,7 +71,7 @@ func (db *DB) getUnitMetaWithKnownLatestVersion(ctx context.Context, fullPath, m
Join("paths p ON p.id = u.path_id").Where(squirrel.Eq{"p.path": fullPath}).
PlaceholderFormat(squirrel.Dollar)
- if internal.DefaultBranches[version] {
+ if internal.DefaultBranches[version] || stdlib.SupportedBranches[version] {
query = query.
Join("version_map vm ON m.id = vm.module_id").
Where("vm.requested_version = ?", version)