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)
Tue, Mar 31, 6:20 AM
Unknown Object (File)
Sat, Mar 28, 11:53 AM
Unknown Object (File)
Mon, Mar 23, 7:12 PM
Unknown Object (File)
Sat, Mar 14, 2:42 PM
Unknown Object (File)
Sat, Mar 7, 9:57 PM
Unknown Object (File)
Wed, Mar 4, 12:19 PM
Unknown Object (File)
Feb 20 2026, 8:04 AM
Unknown Object (File)
Feb 8 2026, 10:06 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: