We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f807b6a commit 6a73e51Copy full SHA for 6a73e51
frontend/src/goutil
@@ -6,6 +6,7 @@ set -x
6
cd $1
7
shift
8
9
+
10
# Override these variables to make go not depend on HOME
11
mkdir -p /tmp/go
12
export GOPATH=/tmp/go
@@ -17,4 +18,13 @@ then
17
18
GOBIN=/usr/lib/go-1.13/bin/go
19
fi
20
21
+version=`$GOBIN version | { read _ _ v _; echo ${v#go}; }`
22
23
+if [[ "$version" > "1.15" ]]; then
24
+ # Temporary solution until https://github.com/golang/go/issues/28194 is fixed
25
+ # in order to retry failed fetch requests.
26
+ # GOPROXY fallback was added in Go 1.15
27
+ export GOPROXY="proxy.golang.org|proxy.golang.org|direct"
28
+fi
29
30
$GOBIN "$@"
0 commit comments