summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2022-09-17 15:27:41 +0000
committerbsiegert <bsiegert@pkgsrc.org>2022-09-17 15:27:41 +0000
commit38a447f58f283da18daf1809e536bd05fb142d39 (patch)
tree3f316f551bd100a3963f4f7334f186b5a2ced656 /lang
parent7a2b7eeee678e2780e3d2fbc3177bfd8a8911d7a (diff)
downloadpkgsrc-38a447f58f283da18daf1809e536bd05fb142d39.tar.gz
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@
Diffstat (limited to 'lang')
-rw-r--r--lang/go/go-module.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/go/go-module.mk b/lang/go/go-module.mk
index f7feffa3585..c643676e523 100644
--- a/lang/go/go-module.mk
+++ b/lang/go/go-module.mk
@@ -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