git: 628a88d9dc63 - main - sysutils/loki: Pin to go1.19
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Feb 2023 22:14:40 UTC
The branch main has been updated by dmgk:
URL: https://cgit.FreeBSD.org/ports/commit/?id=628a88d9dc6358a4b0d103e03c2d397cdb781cc8
commit 628a88d9dc6358a4b0d103e03c2d397cdb781cc8
Author: Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2023-02-18 22:06:12 +0000
Commit: Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2023-02-18 22:14:21 +0000
sysutils/loki: Pin to go1.19
When built with go1.20, loki fails at runtime:
panic: Something in this program imports
go4.org/unsafe/assume-no-moving-gc to declare that it assumes a
non-moving garbage collector, but your version of
go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that
it's safe against the go1.20 runtime. If you want to risk it, run with
environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20 set.
Notably, if go1.20 adds a moving garbage collector, this program is
unsafe to use.
Pin this port to go1.19 until this is resolved upstream.
Reported by: cation (via #freebsd-ports)
Approved by: portmgr (blanket, just fix it)
---
sysutils/loki/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysutils/loki/Makefile b/sysutils/loki/Makefile
index 17113de543bf..e54aabd0d2ae 100644
--- a/sysutils/loki/Makefile
+++ b/sysutils/loki/Makefile
@@ -1,7 +1,7 @@
PORTNAME= loki
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils
PKGNAMEPREFIX= grafana-
@@ -12,7 +12,7 @@ WWW= https://github.com/grafana/loki
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= go:modules cpe
+USES= go:1.19,modules cpe
CPE_VENDOR= grafana
USE_GITHUB= yes