From b3d3d1489dc36276f67e473ed92c49af218db8c8 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 17 Feb 2021 12:44:34 +0300 Subject: [PATCH] fix compile go 1.16 --- build-all.sh | 4 +++- deps.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build-all.sh b/build-all.sh index 00c5d62..105300c 100755 --- a/build-all.sh +++ b/build-all.sh @@ -3,7 +3,7 @@ PLATFORMS="" PLATFORMS="$PLATFORMS linux/amd64 linux/386" PLATFORMS="$PLATFORMS windows/amd64 windows/386" # arm compilation not available for Windows -PLATFORMS="$PLATFORMS darwin/amd64" # amd64 only as of go1.5 +PLATFORMS="$PLATFORMS darwin/amd64 darwin/arm64" PLATFORMS="$PLATFORMS freebsd/amd64" PLATFORMS="$PLATFORMS linux/mips linux/mipsle linux/mips64 linux/mips64le" # experimental in go1.6 #PLATFORMS="$PLATFORMS linux/arm linux/arm64" @@ -23,6 +23,8 @@ PLATFORMS_ARM="linux" type setopt >/dev/null 2>&1 export GOPATH="${PWD}" +export GO111MODULE=auto + GOBIN="/usr/local/go/bin/go" go run build_web.go diff --git a/deps.sh b/deps.sh index 29b27fc..dd9be10 100755 --- a/deps.sh +++ b/deps.sh @@ -1,9 +1,11 @@ #!/bin/bash export GOPATH="${PWD}" +export GO111MODULE=auto go get -v github.com/pkg/browser go get -v github.com/alexflint/go-arg +go get -v golang.org/x/time/rate go get -v github.com/anacrolix/dht go get -v github.com/anacrolix/missinggo/httptoo go get -v github.com/anacrolix/torrent