From 5d36140c5cb25aaa720f89abf36109f1aacfb3f0 Mon Sep 17 00:00:00 2001 From: Gerdriaan Mulder Date: Sat, 19 Jul 2025 14:41:09 +0200 Subject: [PATCH] docfix: use `GONOSUMDB` on Athens' home page (#2056) --- cmd/proxy/actions/home.go | 4 ++-- docs/content/configuration/home-template.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/proxy/actions/home.go b/cmd/proxy/actions/home.go index aad95a99..ee9a7741 100644 --- a/cmd/proxy/actions/home.go +++ b/cmd/proxy/actions/home.go @@ -47,8 +47,8 @@ const homepage = `
GOPROXY={{ .Host }},direct
{{ if .NoSumPatterns }}

Excluding checksum database

-

Use the following GONOSUM environment variable to exclude checksum database:

-
GONOSUM={{ .NoSumPatterns }}
+

Use the following GONOSUMDB environment variable to exclude checksum database:

+
GONOSUMDB={{ .NoSumPatterns }}
{{ end }}

How to use the Athens API

diff --git a/docs/content/configuration/home-template.md b/docs/content/configuration/home-template.md index b1db07e7..84e93848 100644 --- a/docs/content/configuration/home-template.md +++ b/docs/content/configuration/home-template.md @@ -61,8 +61,8 @@ For more advanced formatting read more about [Go HTML templates](https://pkg.go.
GOPROXY={{ .Host }},direct
{{ if .NoSumPatterns }}

Excluding checksum database

-

Use the following GONOSUM environment variable to exclude checksum database:

-
GONOSUM={{ .NoSumPatterns }}
+

Use the following GONOSUMDB environment variable to exclude checksum database:

+
GONOSUMDB={{ .NoSumPatterns }}
{{ end }}

How to use the Athens API