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)
Sat, Sep 13, 6:00 AM
Unknown Object (File)
Sat, Sep 6, 4:00 AM
Unknown Object (File)
Sun, Aug 31, 12:56 AM
Unknown Object (File)
Tue, Aug 26, 5:53 PM
Unknown Object (File)
Aug 5 2025, 1:21 PM
Unknown Object (File)
Jul 25 2025, 8:43 AM
Unknown Object (File)
Jul 16 2025, 9:13 AM
Unknown Object (File)
Jul 13 2025, 1:52 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: