[Bug 281491] Uses/go.mk: uses downloaded toolchain
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 281491] Uses/go.mk: uses downloaded toolchain"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Sep 2024 13:52:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281491 --- Comment #1 from Denis Shaposhnikov <dsh@bamus.cz> --- I use this in my overlay https://github.com/dsh2dsh/freebsd-ports/blob/1dff138dcc344673d4d2443c40d08d9784d22f48/Mk/Uses/go.mk#L3 # If a port USES specific go version and DEFAULT_VERSIONS specifies higher # version, use it, instead of lower go version from USES. Example: # # DEFAULT_VERSIONS+= go=1.22 # USES= go:1.21 # # In this example a port builded with lang/go122 instead of lang/go121, because # DEFAULT_VERSIONS specifies higher version of go. GO_VERSION= ${go_ARGS:M[1-9].*:U${GO_DEFAULT}} . if ${GO_VERSION:N*-devel} && ${GO_VERSION} < ${GO_DEFAULT} go_ARGS:= ${go_ARGS:S/${GO_VERSION}/${GO_DEFAULT}/1} . endif May be this change will help. -- You are receiving this mail because: You are the assignee for the bug.