Hi ports@

a simple patch for devel/gopls 0.21.0 to use 'TEST_TARGET' instead of a 
specific 'do-test' step (following recent commit by semarie@ in 
lang/go/go.port.mk).

Build and tests OK on current/amd64 with Go 1.25.5.

Tests welcome and please commit if OK.

Laurent


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/gopls/Makefile,v
diff -u -p -r1.16 Makefile
--- Makefile	17 Dec 2025 23:51:51 -0000	1.16
+++ Makefile	12 Jan 2026 11:29:22 -0000
@@ -3,6 +3,8 @@ COMMENT =	official Go language server de
 MODGO_MODNAME =	golang.org/x/tools/gopls
 MODGO_VERSION =	v0.21.0
 
+REVISION =	0
+
 DISTNAME =	gopls-${MODGO_VERSION}
 
 CATEGORIES =	devel
@@ -23,6 +25,8 @@ MODGO_LDFLAGS +=	-X main.version=${MODGO
 
 DOCDIR =	${PREFIX}/share/doc/gopls
 
+TEST_TARGET =	./...
+
 post-install:
 	${INSTALL_DATA_DIR} ${DOCDIR}/design \
 		${DOCDIR}/editor \
@@ -31,9 +35,6 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/doc/design/*.md ${DOCDIR}/design
 	${INSTALL_DATA} ${WRKSRC}/doc/editor/*.md ${DOCDIR}/editor
 	${INSTALL_DATA} ${WRKSRC}/doc/features/*.md ${DOCDIR}/features
-
-do-test:
-	cd ${WRKSRC} && ${MODGO_TEST_CMD} ./...
 
 .include "modules.inc"
 

Reply via email to