[pkgsite] internal/licenses: allow overriding links to licenses

0 views
Skip to first unread message

Sean Liao (Gerrit)

unread,
Dec 8, 2025, 5:47:10 PM (4 days ago) Dec 8
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, David Chase, kokoro, Go LUCI, Ethan Lee, Robert Findley, Jonathan Amsterdam, golang-co...@googlegroups.com

Sean Liao submitted the change with unreviewed changes

Unreviewed changes

1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: internal/licenses/licenses.go
Insertions: 4, Deletions: 0.

@@ -191,7 +191,11 @@
"Zlib",
}

+ // licenseURLOverrides provides a mapping from a license identifier to its
+ // correct URL. This is used for licenses where the URL has changed or does
+ // not follow the standard pattern.
licenseURLOverrides = map[string]string{
+ // HPND is a retired license, and the URL has changed.
"HPND": "https://opensource.org/license/historical-php",
}

```

Change information

Commit message:
internal/licenses: allow overriding links to licenses

The HPND license has been retired, but should still be
considered valid for use. opensource.org changed the url
that hosts the license, and it doesn't appear to follow
any specific pattern, so we need to keep an override mapping.

Fixes golang/go#76119
Change-Id: I554781021acc599785c8840f404bd01c6a6a6964
Reviewed-by: Ethan Lee <etha...@google.com>
kokoro-CI: kokoro <noreply...@google.com>
Reviewed-by: David Chase <drc...@google.com>
Files:
  • M internal/licenses/licenses.go
Change size: S
Delta: 1 file changed, 11 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Ethan Lee, +1 by David Chase
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
  • requirement satisfiedkokoro-CI-Passes: kokoro-CI+1 by kokoro
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I554781021acc599785c8840f404bd01c6a6a6964
Gerrit-Change-Number: 728260
Gerrit-PatchSet: 3
Gerrit-Owner: Sean Liao <se...@liao.dev>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: Sean Liao <se...@liao.dev>
Gerrit-Reviewer: kokoro <noreply...@google.com>
Gerrit-CC: Robert Findley <rfin...@google.com>
Gerrit-CC: kokoro <noreply...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages