There are tests and they pass except for some xattr stuff (chflags(1) for Linux)
and some basic stuff like reading from stdin (worth looking into).

One test runs 'python -c ...', hence the module.

Either I'm holding it wrong or that one google/go-cmp module comes with bad
permissions which need amending to allow _pbuild to remove everything 
afterwards.

Thoughts?

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/restic/Makefile,v
diff -u -p -r1.44 Makefile
--- Makefile    11 Nov 2024 09:36:33 -0000      1.44
+++ Makefile    12 Jan 2025 17:14:42 -0000
@@ -16,8 +16,22 @@ PERMIT_PACKAGE=      Yes
 
 WANTLIB += c pthread
 
-MODULES=       lang/go
-NO_TEST=       Yes
+MODULES=       lang/go \
+               lang/python
+MODPY_BUILDDEP=        No
+MODPY_RUNDEP=  No
+
+# XXX files and dirs in this module end up without +w bits
+READONLY_MOD=  ${WRKDIR}/go/pkg/mod/github.com/google/go-cmp@v0.6.0/
+
+do-test:
+       # unbreak 'make clean' whilst preserving test result
+       set +e; \
+       cd ${WRKSRC}; \
+       ${MODGO_CMD} run build.go --verbose --test; \
+       ret=$?; \
+       chmod -R u+w ${READONLY_MOD}; \
+       exit $ret
 
 do-install:
        ${MODGO_INSTALL_TARGET}

Reply via email to