AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

meta: introduce default GOFLAGS definition #128

Closed CamberLoid closed 2 years ago

CamberLoid commented 2 years ago

In recent aosc-os-abbs topic Go-1.18-survey-20220401 , it is found that similar GOFLAGS is defined repeatably, making build script harder to read. This pull request attempt to resolve aforementioned issue and may make further packaging for go-based project easilier.

File changes:

CamberLoid commented 2 years ago

image

LGTM on amd64 (replace a random package's prepare with echo "GOFLAGS= ${GOFLAGS}" and then Ctrl-C )