pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go go-module.mk: more sensible default for GO_BUI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b22ebf71c268
branches:  trunk
changeset: 385430:b22ebf71c268
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Sep 17 15:27:41 2022 +0000

description:
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:

 lang/go/go-module.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 91dd4f7c3503 -r b22ebf71c268 lang/go/go-module.mk
--- a/lang/go/go-module.mk      Sat Sep 17 15:11:45 2022 +0000
+++ b/lang/go/go-module.mk      Sat Sep 17 15:27:41 2022 +0000
@@ -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