From d6b84db4c35a42bbb0362d4660e6ecdaeae7f9f3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 9 Jul 2023 13:42:00 +0000 Subject: [PATCH] Improve build commands: do not silence them --- scripts/upgrade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5fa4417..8545259 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -96,11 +96,13 @@ then pushd "$install_dir/build" # Build the sources ynh_use_go + export PATH="$PATH" export GOPATH="$install_dir/build/go" export GOCACHE="$install_dir/build/.cache" - CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/dendrite > /dev/null 2>&1 - CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/create-account > /dev/null 2>&1 - CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys > /dev/null 2>&1 + export CGO_ENABLED=1 + ynh_exec_warn_less go build -trimpath -v -o "$install_dir/bin/" ./cmd/dendrite + ynh_exec_warn_less go build -trimpath -v -o "$install_dir/bin/" ./cmd/create-account + ynh_exec_warn_less go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys popd ynh_secure_remove --file="$install_dir/build"