Skip to content

Commit

Permalink
bumped go to version 1.13.6, added -O to wget commands to fix issue #143
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Jan 10, 2020
1 parent dd9ee81 commit 8f40382
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Creates the static go asset archives
# You'll need wget, tar, and unzip commands

GO_VER="1.13.3"
GO_VER="1.13.6"
BLOAT_FILES="AUTHORS CONTRIBUTORS PATENTS VERSION favicon.ico robots.txt CONTRIBUTING.md LICENSE README.md ./doc ./test"


Expand All @@ -34,7 +34,7 @@ cd $WORK_DIR
mkdir -p $REPO_DIR/assets/

# --- Darwin ---
wget https://dl.google.com/go/go$GO_VER.darwin-amd64.tar.gz
wget -O go$GO_VER.darwin-amd64.tar.gz https://dl.google.com/go/go$GO_VER.darwin-amd64.tar.gz
tar xvf go$GO_VER.darwin-amd64.tar.gz

cd go
Expand All @@ -57,7 +57,7 @@ rm -f darwin-go.zip go$GO_VER.darwin-amd64.tar.gz


# --- Linux ---
wget https://dl.google.com/go/go$GO_VER.linux-amd64.tar.gz
wget -O go$GO_VER.linux-amd64.tar.gz https://dl.google.com/go/go$GO_VER.linux-amd64.tar.gz
tar xvf go$GO_VER.linux-amd64.tar.gz
cd go
rm -rf $BLOAT_FILES
Expand All @@ -73,7 +73,7 @@ rm -rf ./go
rm -f linux-go.zip go$GO_VER.linux-amd64.tar.gz

# --- Windows ---
wget https://dl.google.com/go/go$GO_VER.windows-amd64.zip
wget -O go$GO_VER.windows-amd64.zip https://dl.google.com/go/go$GO_VER.windows-amd64.zip
unzip go$GO_VER.windows-amd64.zip
cd go
rm -rf $BLOAT_FILES
Expand All @@ -95,14 +95,14 @@ echo "-----------------------------------------------------------------"
cd $WORK_DIR

PROTOBUF_COMMIT=347cf4a86c1cb8d262994d8ef5924d4576c5b331
wget https://github.com/golang/protobuf/archive/$PROTOBUF_COMMIT.zip
wget -O $PROTOBUF_COMMIT.zip https://github.com/golang/protobuf/archive/$PROTOBUF_COMMIT.zip
unzip $PROTOBUF_COMMIT.zip
rm -f $PROTOBUF_COMMIT.zip
mv protobuf-$PROTOBUF_COMMIT protobuf
zip -r protobuf.zip ./protobuf
cp -vv protobuf.zip $REPO_DIR/assets/protobuf.zip

wget https://go.googlesource.com/sys/+archive/master.tar.gz
wget -O master.tar.gz https://go.googlesource.com/sys/+archive/master.tar.gz
mkdir $WORK_DIR/sys
cd $WORK_DIR/sys
tar xfv ../master.tar.gz
Expand Down

0 comments on commit 8f40382

Please sign in to comment.