From e816385534db96051a415d175ac6a023bb631148 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Wed, 22 Feb 2023 21:45:34 +0800 Subject: [PATCH] upadte --- pack.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pack.sh b/pack.sh index 6b386f1..f334284 100644 --- a/pack.sh +++ b/pack.sh @@ -2,7 +2,7 @@ #set -x NAME="pingtunnel" -export GO111MODULE=off +export GO111MODULE=on #go tool dist list build_list=$(go tool dist list) @@ -11,15 +11,7 @@ rm pack -rf rm pack.zip -f mkdir pack -go get -u -v github.com/esrrhs/pingtunnel/... -last=`pwd` -cd $GOPATH/src/golang.org/x -for dir in `ls`; do - cd $dir - git pull - cd .. -done -cd $last +go mod tidy for line in $build_list; do os=$(echo "$line" | awk -F"/" '{print $1}')