From 26e58a8f7aa694a86bb196a607a808c8c1a95ea2 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Tue, 21 Dec 2021 20:27:02 +0200 Subject: [PATCH] [scripts] Minor updates. --- scripts/go.z-run | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/go.z-run b/scripts/go.z-run index b1b5a70..2e45840 100644 --- a/scripts/go.z-run +++ b/scripts/go.z-run @@ -31,15 +31,16 @@ if test -e "${_outputs}/binaries/release/kawipiko-server" ; then rm -- "${_outputs}/binaries/release/kawipiko-server" fi - _flags=() + _flags=( + -tags netgo + ) if test -z "${_BUILD_QUICK:-}" ; then _flags+=( - -tags netgo - -a -gcflags 'all=-l=4' -ldflags 'all=-s' -buildmode exe -trimpath + -a ) fi exec -- \ @@ -84,15 +85,16 @@ if test -e "${_outputs}/binaries/release/kawipiko-archiver" ; then rm -- "${_outputs}/binaries/release/kawipiko-archiver" fi - _flags=() + _flags=( + -tags netgo + ) if test -z "${_BUILD_QUICK:-}" ; then _flags+=( - -tags netgo - -a -gcflags 'all=-l=4' -ldflags 'all=-s' -buildmode exe -trimpath + -a ) fi exec -- \ @@ -179,15 +181,16 @@ if test -e "${_outputs}/binaries/release/kawipiko-server-dummy" ; then rm -- "${_outputs}/binaries/release/kawipiko-server-dummy" fi - _flags=() + _flags=( + -tags netgo + ) if test -z "${_BUILD_QUICK:-}" ; then _flags+=( - -tags netgo - -a -gcflags 'all=-l=4' -ldflags 'all=-s' -buildmode exe -trimpath + -a ) fi exec -- \