Skip to content

Commit 67a5db7

Browse files
Set minimum golang version to go1.19.6 (#551)
1 parent 03c6f3b commit 67a5db7

File tree

7 files changed

+12
-16
lines changed

7 files changed

+12
-16
lines changed

.github/workflows/lint-tests-release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,13 @@ jobs:
2424
args: --timeout 3m
2525

2626
unit_test:
27-
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }})
28-
runs-on: ${{ matrix.os }}
29-
strategy:
30-
matrix:
31-
go: ["1.20"]
32-
os: [ubuntu-20.04]
27+
name: Golang Unit Tests
28+
runs-on: ubuntu-20.04
3329
steps:
3430
- uses: actions/checkout@v3
3531
- uses: actions/setup-go@v3
3632
with:
37-
go-version: ${{ matrix.go }}
33+
go-version: "1.19"
3834
- run: go mod download
3935
shell: bash
4036
- run: ./scripts/build.sh ./build/subnetevm
@@ -55,7 +51,7 @@ jobs:
5551
- name: Set up Go
5652
uses: actions/setup-go@v3
5753
with:
58-
go-version: "1.20"
54+
go-version: "1.19"
5955
- name: Use Node.js
6056
uses: actions/setup-node@v3
6157
with:
@@ -85,7 +81,7 @@ jobs:
8581
- name: Set up Go
8682
uses: actions/setup-go@v3
8783
with:
88-
go-version: "1.20"
84+
go-version: "1.19"
8985
- name: Set up arm64 cross compiler
9086
run: |
9187
sudo apt-get -y update

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ARG AVALANCHE_VERSION
66

77
# ============= Compilation Stage ================
8-
FROM golang:1.20.1-buster AS builder
8+
FROM golang:1.19.6-buster AS builder
99
RUN apt-get update && apt-get install -y --no-install-recommends bash=5.0-4 git=1:2.20.1-2+deb10u3 make=4.2.1-1.2 gcc=4:8.3.0-1 musl-dev=1.1.21-2 ca-certificates=20200601~deb10u2 linux-headers-amd64
1010

1111
WORKDIR /build
@@ -15,7 +15,7 @@ WORKDIR /build
1515
COPY go.mod go.sum avalanchego* ./
1616

1717
# Download avalanche dependencies using go mod
18-
RUN go mod download && go mod tidy -compat=1.20
18+
RUN go mod download && go mod tidy -compat=1.19
1919

2020
# Copy the code into the container
2121
COPY . .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To support these changes, there have been a number of changes to the SubnetEVM b
8080

8181
### Clone Subnet-evm
8282

83-
First install Go 1.20.1 or later. Follow the instructions [here](https://golang.org/doc/install). You can verify by running `go version`.
83+
First install Go 1.19.6 or later. Follow the instructions [here](https://golang.org/doc/install). You can verify by running `go version`.
8484

8585
Set `$GOPATH` environment variable properly for Go to look for Go Workspaces. Please read [this](https://go.dev/doc/gopath_code) for details. You can verify by running `echo $GOPATH`.
8686

accounts/abi/bind/bind_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ func golangBindings(t *testing.T, overload bool) {
21362136
if out, err := replacer.CombinedOutput(); err != nil {
21372137
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
21382138
}
2139-
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.20")
2139+
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.19")
21402140
tidier.Dir = pkg
21412141
if out, err := tidier.CombinedOutput(); err != nil {
21422142
t.Fatalf("failed to tidy Go module file: %v\n%s", err, out)

cmd/simulator/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ava-labs/subnet-evm/cmd/simulator
22

3-
go 1.20
3+
go 1.19
44

55
require (
66
github.com/ethereum/go-ethereum v1.10.26

go.mod

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

3-
go 1.20
3+
go 1.19
44

55
require (
66
github.com/VictoriaMetrics/fastcache v1.10.0

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o errexit
44
set -o nounset
55
set -o pipefail
66

7-
go_version_minimum="1.20.1"
7+
go_version_minimum="1.19.6"
88

99
go_version() {
1010
go version | sed -nE -e 's/[^0-9.]+([0-9.]+).+/\1/p'

0 commit comments

Comments
 (0)