Index | Thread | Search

From:
mischief <mischief@offblast.org>
Subject:
[update] sysutils/direnv 2.37.1, fix riscv64 build
To:
ports@openbsd.org
Cc:
ashton@fagg.id.au
Date:
Wed, 6 May 2026 18:06:06 -0700

Download raw body.

Thread
this updates direnv to 2.37.1, which also fixes the build for riscv64.

make test does not pass for me, but the issue with that is a panic in go
vet. this only happens for me with make test in the port - running the
tests outside of ports works for me on the same riscv64 machine.

diff --git a/sysutils/direnv/Makefile b/sysutils/direnv/Makefile
index b5c3d6c4ea8..f9cb35ed2bd 100644
--- a/sysutils/direnv/Makefile
+++ b/sysutils/direnv/Makefile
@@ -1,9 +1,9 @@
 COMMENT =		tool for managing environment based on current directory
 
-GH_ACCOUNT =		direnv
-GH_PROJECT =		direnv
-GH_TAGNAME =		v2.26.0
-REVISION =		0
+MODGO_MODNAME =		github.com/direnv/direnv/v2
+MODGO_VERSION =		v2.37.1
+
+DISTNAME =		direnv-${MODGO_VERSION}
 
 MAINTAINER=		Ashton Fagg <ashton@fagg.id.au>
 CATEGORIES =		sysutils devel
@@ -25,14 +25,9 @@ RUN_DEPENDS =		shells/bash
 pre-build:
 	rm -rf ${WRKSRC}/script
 
-do-build:
-	${MODGO_BUILD_CMD} github.com/direnv/direnv/...
-
 do-install:
 	$(INSTALL_PROGRAM) $(MODGO_WORKSPACE)/bin/direnv $(PREFIX)/bin
 	${INSTALL_MAN} ${WRKSRC}/man/*.1 $(PREFIX)/man/man1/
 
-do-test:
-	${MODGO_CMD} test github.com/direnv/direnv/...
-
+.include "modules.inc"
 .include <bsd.port.mk>
diff --git a/sysutils/direnv/distinfo b/sysutils/direnv/distinfo
index 00adf4df424..d220c91ab7a 100644
--- a/sysutils/direnv/distinfo
+++ b/sysutils/direnv/distinfo
@@ -1,2 +1,24 @@
-SHA256 (direnv-2.26.0.tar.gz) = s9u5f00mJ+xYiJTwhL/cdttH/1477CEFC7gYYIx4Nbk=
-SIZE (direnv-2.26.0.tar.gz) = 1378688
+SHA256 (direnv-v2.37.1.zip) = zEVCNsSLsMAkcqkvDzwk1PO9iG7J7/v0iexPCej2GEk=
+SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.5.0.mod) = RdeLgFcZmbaiWNoPIWc9o55rUBNJwDOkrNFpQ3QR1zM=
+SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.5.0.zip) = oQyNPWxKm3PciFRkJF7sayfWT0MNaXk4nNnFit3hWFU=
+SHA256 (go_modules/github.com/mattn/go-isatty/@v/v0.0.20.mod) = Huq+8bTZjbc8bCBzKJFjZJvJoERVKsqGudWS/oTqocg=
+SHA256 (go_modules/github.com/mattn/go-isatty/@v/v0.0.20.zip) = 8tX4nKRRV34XRkubtZbcDQ7OzsteqmNiLEG1fNC3uMw=
+SHA256 (go_modules/golang.org/x/mod/@v/v0.25.0.mod) = H7itL3IBzXm/F4V4s1qurRcgyrK4z+o1uZsltgg58e8=
+SHA256 (go_modules/golang.org/x/mod/@v/v0.25.0.zip) = 8wIeXmp3fBRuRpAnrM8es2PuowRf+BIJkVKyDyYY9hw=
+SHA256 (go_modules/golang.org/x/sys/@v/v0.30.0.mod) = 0iezJfYh9OvijTm6dz6pm4cPOTt8CcNFksNlsW3VYN4=
+SHA256 (go_modules/golang.org/x/sys/@v/v0.30.0.zip) = 9SFL/smPAOVDLaaLvs4D6YYA+kFZTtAmVWy96Py298k=
+SHA256 (go_modules/golang.org/x/sys/@v/v0.6.0.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ=
+SHA256 (go_modules/golang.org/x/tools/@v/v0.13.0.mod) = FCs0FrAOghO0CeJ5pDS5emzglTHJFMG0cXh4FX1Xmj8=
+SHA256 (go_modules/golang.org/x/tools/@v/v0.13.0.zip) = b9HiUBEiFXCUVEaOrVPDHFJLBcyQpi7YF9DUeA/bZCk=
+SIZE (direnv-v2.37.1.zip) = 164556
+SIZE (go_modules/github.com/!burnt!sushi/toml/@v/v1.5.0.mod) = 43
+SIZE (go_modules/github.com/!burnt!sushi/toml/@v/v1.5.0.zip) = 352548
+SIZE (go_modules/github.com/mattn/go-isatty/@v/v0.0.20.mod) = 76
+SIZE (go_modules/github.com/mattn/go-isatty/@v/v0.0.20.zip) = 8936
+SIZE (go_modules/golang.org/x/mod/@v/v0.25.0.mod) = 86
+SIZE (go_modules/golang.org/x/mod/@v/v0.25.0.zip) = 172648
+SIZE (go_modules/golang.org/x/sys/@v/v0.30.0.mod) = 33
+SIZE (go_modules/golang.org/x/sys/@v/v0.30.0.zip) = 1987982
+SIZE (go_modules/golang.org/x/sys/@v/v0.6.0.mod) = 33
+SIZE (go_modules/golang.org/x/tools/@v/v0.13.0.mod) = 214
+SIZE (go_modules/golang.org/x/tools/@v/v0.13.0.zip) = 3071376
diff --git a/sysutils/direnv/modules.inc b/sysutils/direnv/modules.inc
new file mode 100644
index 00000000000..b9005c3eb7c
--- /dev/null
+++ b/sysutils/direnv/modules.inc
@@ -0,0 +1,10 @@
+MODGO_MODULES =        \
+       github.com/!burnt!sushi/toml     v1.5.0 \
+       github.com/mattn/go-isatty       v0.0.20 \
+       golang.org/x/mod                 v0.25.0 \
+       golang.org/x/sys                 v0.30.0 \
+       golang.org/x/tools               v0.13.0
+
+MODGO_MODFILES =       \
+       golang.org/x/sys         v0.6.0
+