Page MenuHomeFreeBSD

USES= go: support v2 and higher proxy URLs
ClosedPublic

Authored by ngie on Apr 9 2025, 2:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 11, 11:22 PM
Unknown Object (File)
Thu, Dec 11, 11:22 PM
Unknown Object (File)
Sun, Dec 7, 1:34 AM
Unknown Object (File)
Fri, Nov 28, 1:42 PM
Unknown Object (File)
Oct 30 2025, 2:25 PM
Unknown Object (File)
Oct 30 2025, 11:57 AM
Unknown Object (File)
Oct 30 2025, 8:47 AM
Unknown Object (File)
Oct 29 2025, 6:14 AM
Subscribers
None

Details

Summary

golang projects with versions greater than 2.x have different URLs
presented for them via ${GOPROXY} [1]. In particular, the major
version is added to the URL and to the extracted GOPROXY provided
DISTFILE(s).

This change adjusts MASTER_SITES and WRKSRC with USES+= go to
support the "Major Version Suffixes" documented in the go module
docs [1].

  1. https://go.dev/ref/mod#major-version-suffixes

Signed-off-by: Enji Cooper <ngie@FreeBSD.org>

Test Plan

This change allows me to upgrade devel/golangci-lint to v2.0.2 . See D49724 for more details.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.Apr 9 2025, 2:26 AM
ngie created this revision.
ngie added reviewers: adamw, rene, mat, arrowd, tijl.

Not a Go user, but semantically the change looks fine.

This revision is now accepted and ready to land.Apr 9 2025, 5:00 AM

This is a good approach. I'm ๐Ÿ‘ on behalf of the go team.

Thanks, Enji!

This revision was automatically updated to reflect the committed changes.

This is a good approach. I'm ๐Ÿ‘ on behalf of the go team.

Thanks, Enji!

Macro thankyou_dog: