Skip to content

Commit

Permalink
chore: Improve build script generation and environment setup (#1070)
Browse files Browse the repository at this point in the history
* chore: Improve build script generation and environment setup

- Compatible with go version 1.21.0

* chore: Improved Matching Regular
  • Loading branch information
cyshallchan authored Aug 16, 2023
1 parent 799d737 commit 3a1b9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_build_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ram_limit_nproc=\$((ram_size / 1024 / 768))
EOF

if [ $EXPORT_GO_ENVS ]; then
envs=($(go env | grep -E 'GOPRIVATE=".+"|GOPROXY=".+"'))
envs=($(go env | grep -E 'GOPRIVATE=(".+"|'\''.+'\'')|GOPROXY=(".+"|'\''.+'\'')'))
for v in ${envs[@]}; do
echo "go env -w $v" >> $BUILD_SCRIPT_FILE
done
Expand Down

0 comments on commit 3a1b9a0

Please sign in to comment.