[scripts] When building do not add -mod readonly.

This commit is contained in:
Ciprian Dorin Craciun 2021-12-16 11:57:08 +02:00
parent 7c18defaa9
commit 3003736692

View file

@ -15,7 +15,6 @@
nice -n 19 \ nice -n 19 \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-o "${_outputs}/binaries/debug/kawipiko-server" \ -o "${_outputs}/binaries/debug/kawipiko-server" \
-- ./cmd/server.go \ -- ./cmd/server.go \
# #
@ -34,7 +33,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-tags netgo \ -tags netgo \
-a \ -a \
-gcflags 'all=-l=4' \ -gcflags 'all=-l=4' \
@ -61,7 +59,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-o "${_outputs}/binaries/debug/kawipiko-archiver" \ -o "${_outputs}/binaries/debug/kawipiko-archiver" \
-- ./cmd/archiver.go \ -- ./cmd/archiver.go \
# #
@ -79,7 +76,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-tags netgo \ -tags netgo \
-a \ -a \
-gcflags 'all=-l=4' \ -gcflags 'all=-l=4' \
@ -106,7 +102,6 @@
nice -n 19 \ nice -n 19 \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-o "${_outputs}/binaries/debug/kawipiko-wrapper" \ -o "${_outputs}/binaries/debug/kawipiko-wrapper" \
-- ./cmd/wrapper.go \ -- ./cmd/wrapper.go \
# #
@ -125,7 +120,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-tags netgo \ -tags netgo \
-a \ -a \
-gcflags 'all=-l=4' \ -gcflags 'all=-l=4' \
@ -152,7 +146,6 @@
nice -n 19 \ nice -n 19 \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-o "${_outputs}/binaries/debug/kawipiko-server-dummy" \ -o "${_outputs}/binaries/debug/kawipiko-server-dummy" \
-- ./cmd/server-dummy.go \ -- ./cmd/server-dummy.go \
# #
@ -171,7 +164,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-tags netgo \ -tags netgo \
-a \ -a \
-gcflags 'all=-l=4' \ -gcflags 'all=-l=4' \
@ -205,7 +197,6 @@
nice -n 19 -- \ nice -n 19 -- \
"${ZRUN[@]}" ':: go / tool' \ "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-tags netgo \ -tags netgo \
-a \ -a \
-gcflags 'all=-l=4' \ -gcflags 'all=-l=4' \
@ -249,7 +240,6 @@
mkdir -p -- "${_outputs}/binaries/debug" mkdir -p -- "${_outputs}/binaries/debug"
exec -- "${ZRUN[@]}" ':: go / tool' \ exec -- "${ZRUN[@]}" ':: go / tool' \
build \ build \
-mod readonly \
-gcflags '-m' \ -gcflags '-m' \
-o "${_outputs}/binaries/debug/kawipiko-server-analyze" \ -o "${_outputs}/binaries/debug/kawipiko-server-analyze" \
-- ./cmd/server.go \ -- ./cmd/server.go \