Fail go build when $go_import_path is not set

Closes: #2881 [via git-merge-pr]
This commit is contained in:
Kyle Nusbaum 2018-09-18 19:29:24 -05:00 committed by Michael Aldridge
parent d096c3dfe2
commit 422e3461fe
1 changed files with 5 additions and 0 deletions

View File

@ -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