Skip to content

Commit eedfac8

Browse files
committed
Update Go to v1.21.1 in CI & Docker
This might also fix the CLI build for Windows: golang/go#51007
1 parent 390b560 commit eedfac8

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7474
RUN bash /tmp/library-scripts/rust-debian.sh "${CARGO_HOME}" "${RUSTUP_HOME}" "${USERNAME}" "true" "true"
7575

7676
# Install Go
77-
#ADD https://go.dev/dl/go1.18.4.linux-amd64.tar.gz go1.18.4.linux-amd64.tar.gz
78-
#RUN tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
77+
#ADD https://go.dev/dl/go1.21.1.linux-amd64.tar.gz go.linux-amd64.tar.gz
78+
#RUN tar -C /usr/local -xzf go.linux-amd64.tar.gz
7979
#
8080
#RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" "$GOPATH/pkg" && chmod -R 777 "$GOPATH"
8181
#RUN chown ${USERNAME}:${USERNAME} /go -R
8282

83-
RUN bash /tmp/library-scripts/go-debian.sh "1.18.4" "${GOROOT}" "${GOPATH}" "${USERNAME}" "true" "true" && \
83+
RUN bash /tmp/library-scripts/go-debian.sh "1.21.1" "${GOROOT}" "${GOPATH}" "${USERNAME}" "true" "true" && \
8484
go install github.com/jteeuwen/go-bindata/go-bindata@latest && go-bindata -version
8585

8686
RUN apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
submodules: recursive
106106
- uses: actions/setup-go@v4
107107
with:
108-
go-version: 1.19 # The Go version to download (if necessary) and use.
108+
go-version: 1.21 # The Go version to download (if necessary) and use.
109109
- name: Install Intel's SGX SDK
110110
run: |
111111
mkdir -p "$HOME/.sgxsdk"
@@ -236,7 +236,7 @@ jobs:
236236
submodules: recursive
237237
- uses: actions/setup-go@v4
238238
with:
239-
go-version: 1.19 # The Go version to download (if necessary) and use.
239+
go-version: 1.21 # The Go version to download (if necessary) and use.
240240
- name: Install xgo
241241
run: |
242242
go install github.com/crazy-max/[email protected]

.github/workflows/go-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v4
1818
with:
19-
go-version: 1.19
19+
go-version: 1.21
2020
- uses: actions/checkout@v4
2121
- name: make bin-data-sw
2222
run: |

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
- uses: actions/checkout@v4
152152
- uses: actions/setup-go@v4
153153
with:
154-
go-version: 1.19 # The Go version to download (if necessary) and use.
154+
go-version: 1.21 # The Go version to download (if necessary) and use.
155155
- name: Build CLI
156156
shell: bash
157157
run: |
@@ -168,7 +168,7 @@ jobs:
168168
- uses: actions/checkout@v4
169169
- uses: actions/setup-go@v4
170170
with:
171-
go-version: 1.19 # The Go version to download (if necessary) and use.
171+
go-version: 1.21 # The Go version to download (if necessary) and use.
172172
- name: Install xgo
173173
run: |
174174
go install github.com/crazy-max/[email protected]

deployment/dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ENV GOROOT=/usr/local/go
9090
ENV GOPATH=/go/
9191
ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
9292

93-
ADD https://go.dev/dl/go1.19.linux-amd64.tar.gz go.linux-amd64.tar.gz
93+
ADD https://go.dev/dl/go1.21.1.linux-amd64.tar.gz go.linux-amd64.tar.gz
9494
RUN tar -C /usr/local -xzf go.linux-amd64.tar.gz
9595
RUN go install github.com/jteeuwen/go-bindata/go-bindata@latest && go-bindata -version
9696

deployment/dockerfiles/tests/compile-contracts.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV GOROOT=/usr/local/go
1515
ENV GOPATH=/go/
1616
ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
1717

18-
ADD https://go.dev/dl/go1.19.linux-amd64.tar.gz go.linux-amd64.tar.gz
18+
ADD https://go.dev/dl/go1.21.1.linux-amd64.tar.gz go.linux-amd64.tar.gz
1919
RUN tar -C /usr/local -xzf go.linux-amd64.tar.gz
2020

2121
RUN apt-get update -y && \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/scrtlabs/SecretNetwork
22

3-
go 1.20
3+
go 1.21
44

55
replace (
66
github.com/cometbft/cometbft => github.com/scrtlabs/tendermint v1.9.0-scrt.0.20230802144651-d62916253d52

scripts/install-everything.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rustup component add rust-src
2020
rustup target add wasm32-unknown-unknown
2121

2222
# Install Go
23-
GO_VERSION=1.20.2
23+
GO_VERSION=1.21.1
2424
wget -q https://golang.org/dl/go$GO_VERSION.linux-amd64.tar.gz
2525
sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
2626
export PATH=$PATH:/usr/local/go/bin

0 commit comments

Comments
 (0)