From 74baf6ad7a0dc035df9ddf1e7074c5dc75e4f163 Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Tue, 14 Aug 2018 13:02:57 -0400 Subject: [PATCH] If GIMME_DEBUG >= 2 then `make.bash -v` We already have logic to handle `GIMME_DEBUG` looking like a number and capturing more output from `make.bash` here; adjust condition to make it clearer which value triggers is, and also tell `make.bash` to be more verbose and get more details in the captured log. Having `make.bash -v`, before the the #159 unset of `GO111MODULE`, this facility reveals all the `use of internal package` complaints which show that building Go itself is incompatible with having `GO111MODULE` set in environ. --- gimme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gimme b/gimme index cac0122..3ad8821 100755 --- a/gimme +++ b/gimme @@ -327,8 +327,8 @@ _compile() { export CC_FOR_TARGET="${GIMME_CC_FOR_TARGET}" local make_log="${1}/make.${GOOS}.${GOARCH}.log" - if [[ "${GIMME_DEBUG}" -gt "1" ]]; then - ./make.bash 2>&1 | tee "${make_log}" 1>&2 || return 1 + if [[ "${GIMME_DEBUG}" -ge "2" ]]; then + ./make.bash -v 2>&1 | tee "${make_log}" 1>&2 || return 1 else ./make.bash &>"${make_log}" || return 1 fi