FreeBSD Bugzilla – Attachment 225473 Details for
Bug 256349
Mk/Uses/go.mk: Add GO_PSEUDOVERSION to use pseudoversions to download Golang modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
GO_PSEUDOVERSION.patch
GO_PSEUDOVERSION.patch (text/plain), 1.03 KB, created by
Yuri Victorovich
on 2021-06-01 19:16:14 UTC
(
hide
)
Description:
GO_PSEUDOVERSION.patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2021-06-01 19:16:14 UTC
Size:
1.03 KB
patch
obsolete
>diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk >index 60d1c6f15b5d..6a7c86b7c4d1 100644 >--- a/Mk/Uses/go.mk >+++ b/Mk/Uses/go.mk >@@ -29,6 +29,11 @@ > # be inferred from it. > # It is not needed when building in modules-aware mode. > # >+# GO_PSEUDOVERSION >+# Pseudoversion that Go modules are registered with on pkg.go.dev >+# and index.golang.org. Pseudoversions are sometimes generated >+# by Golang servers when projects have incompliant versions. >+# > # GO_TARGET > # The packages to build. The default value is ${GO_PKGNAME}. > # GO_TARGET can also be a tuple in the form package:path where path can be >@@ -120,7 +125,11 @@ GO_ENV+= GOPATH="${GO_GOPATH}" \ > GOSUMDB=${GO_GOSUMDB} > . if defined(GO_MODULE) > GO_MODNAME= ${GO_MODULE:C/^([^@]*)(@([^@]*)?)/\1/} >+. if !defined(GO_PSEUDOVERSION) > GO_MODVERSION= ${GO_MODULE:C/^([^@]*)(@([^@]*)?)/\2/:M@*:S/^@//:S/^$/${DISTVERSIONFULL}/} >+. else >+GO_MODVERSION= ${GO_PSEUDOVERSION} >+. endif > GO_MODFILE= ${GO_MODVERSION}.mod > GO_DISTFILE= ${GO_MODVERSION}.zip > DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256349
: 225473