From 422e3461fe5c0f28f608577d3224feddb5ac3683 Mon Sep 17 00:00:00 2001 From: Kyle Nusbaum Date: Tue, 18 Sep 2018 19:29:24 -0500 Subject: [PATCH] Fail go build when $go_import_path is not set Closes: #2881 [via git-merge-pr] --- common/build-style/go.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/build-style/go.sh b/common/build-style/go.sh index 007bf18c9c3..e148417689d 100644 --- a/common/build-style/go.sh +++ b/common/build-style/go.sh @@ -3,6 +3,11 @@ # do_configure() { + # $go_import_path must be set, or we can't link $PWD into $GOSRCPATH + if [ -z "$go_import_path" ]; then + msg_error "\"\$go_import_path\" not set on $pkgname template.\n" + fi + # This isn't really configuration, but its needed by packages # that do unusual things with the build where the expect to be # able to cd into the $GOSRCPATH