From 5e25bc0c17966751173bda9ad5ae82793d159366 Mon Sep 17 00:00:00 2001 From: "Hana (Hyang-Ah) Kim" Date: Tue, 3 Dec 2024 17:31:14 -0500 Subject: [PATCH] internal/gaby: exclude go1.17_spec docs from crawling This page was temporarily added to help spec revision. It will be removed at the start of go1.25. Until then, ignore this page. (We have two entries for this page in our DB) For golang/oscar#63 Change-Id: Ibf369100ca25f47ca487bb87f7327388ef8dcef3 Reviewed-on: https://go-review.googlesource.com/c/oscar/+/633395 Reviewed-by: Tatiana Bradley LUCI-TryBot-Result: Go LUCI --- internal/gaby/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/gaby/main.go b/internal/gaby/main.go index f525c8f..26064c6 100644 --- a/internal/gaby/main.go +++ b/internal/gaby/main.go @@ -782,6 +782,11 @@ var godevDeny = []string{ "https://go.dev/s/", "https://go.dev/src/", "https://go.dev/test/", + + // The following pages will be removed at the start of go1.25. + // TODO(golang/oscar#63): remove these rules. + "https://go.dev/doc/go1.17_spec", + "https://go.dev/doc/go1.17_spec.html", } func godevClean(u *url.URL) error {