@@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu" ]
- go: [ "1.20.13" ]
+ go: [ "1.21.8" ]
test-type: [ "detector", "coverage", "memory", "custom-build-tags" ]
runs-on: ${{ matrix.os }}-latest
@@ -21,7 +21,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
# Install Go.
# NOTE: Go 1.10+ is required to build c-shared for windows (https://github.com/golang/go/commit/bb0bfd002ada7e3eb9198d4287b32c2fed6e8da6)
-ENV GOVERSION=go1.20.13 GOROOT=/usr/local/go GOPATH=/go PATH=$PATH:/usr/local/go/bin:/go/bin CGO_ENABLED=1
+ENV GOVERSION=go1.21.8 GOROOT=/usr/local/go GOPATH=/go PATH=$PATH:/usr/local/go/bin:/go/bin CGO_ENABLED=1
RUN curl -L https://storage.googleapis.com/golang/$GOVERSION.linux-amd64.tar.gz -o /tmp/go.tar.gz \
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
@@ -9,8 +9,8 @@ if [ -z ${2+x} ]; then BUILD_TAGS=""; else BUILD_TAGS="$2"; fi
# Note:
# clangwrap.sh needs to be updated when the Go version changes.
# The last version was:
-# https://github.com/golang/go/blob/go1.20.13/misc/ios/clangwrap.sh
-GO_VERSION_REQUIRED="1.20.13"
+# https://github.com/golang/go/blob/go1.21.8/misc/ios/clangwrap.sh
+GO_VERSION_REQUIRED="1.21.8"
BASE_DIR=$(cd "$(dirname "$0")" ; pwd -P)
cd ${BASE_DIR}
@@ -22,7 +22,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
@@ -23,7 +23,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
@@ -17,7 +17,7 @@ set -e -u -x
if [ -z ${1+x} ]; then BUILD_TAGS=""; else BUILD_TAGS="$1"; fi
# Modify this value as we use newer Go versions.
# At this time, psiphon-tunnel-core doesn't support modules
export GO111MODULE=off
@@ -1,6 +1,6 @@
FROM alpine:3.18.4
-ENV GOLANG_VERSION 1.20.13
+ENV GOLANG_VERSION 1.21.8
ENV GOLANG_SRC_URL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz
RUN set -ex \