pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sat Sep 17 15:27:41 UTC 2022

Modified Files:
        pkgsrc/lang/go: go-module.mk

Log Message:
go-module.mk: more sensible default for GO_BUILD_PATTERN

The previous default (...) means "build the whole world", which is never
what you want. Instead, use "./...", which means "everything below the
top-level directory". According to the documentation, this is what was
meant the whole time.

This is probably a no-op because any useful Go package overrides this
currently.

no objection from wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/go/go-module.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/go-module.mk
diff -u pkgsrc/lang/go/go-module.mk:1.8 pkgsrc/lang/go/go-module.mk:1.9
--- pkgsrc/lang/go/go-module.mk:1.8     Thu Jan 20 21:37:11 2022
+++ pkgsrc/lang/go/go-module.mk Sat Sep 17 15:27:41 2022
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.8 2022/01/20 21:37:11 tnn Exp $
+# $NetBSD: go-module.mk,v 1.9 2022/09/17 15:27:41 bsiegert Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -9,7 +9,7 @@
 #      In most cases, the default is fine.
 #
 #      Default:
-#              "...", which means all files below the top-level directory.
+#              "./...", which means all files below the top-level directory.
 #
 # GO_MODULE_FILES (optional)
 #      List of dependency files to be downloaded from the Go module proxy.
@@ -31,7 +31,7 @@
 
 .include "../../lang/go/version.mk"
 
-GO_BUILD_PATTERN?=     ...
+GO_BUILD_PATTERN?=     ./...
 GO_EXTRA_MOD_DIRS?=
 
 MAKE_JOBS_SAFE=                no



Home | Main Index | Thread Index | Old Index