I just pushed commit b318a7cadc57¹ which adds support for specifying a
minimum Go version, using the following syntax:
USES= go:X.Y+
which translates to
“If the current default Go version is less than X.Y, use Go X.Y
instead. Otherwise, just use the default Go version.”
You _must_ use this if your Go port has “go X.Y” in go.mod when X.Y is
not yet the default version.
You _may_ use this if your Go port has “go X.Y” in go.mod when X.Y is
already the default version. It won't make any difference for most
users, but it may help those who override GO_DEFAULT for some reason.
It will also save you some trouble if you merge your port to a quarterly
branch that hasn't yet switched to Go X.Y.
The old go:X.Y syntax, which pins a port to a specific Go version, is
still supported, but should only be used if exceptional circumstances.
Later today or tomorrow, I will push a followup commit that changes all
ports that currently request a specific Go version to either drop the
version or use this syntax instead. A couple of ports needed additional
updates and I'm still not done testing them all.
¹https://cgit.freebsd.org/ports/commit/?id=b318a7cadc57
DES
--
Dag-Erling Smørgrav - [email protected]