Skip to content

Commit 1772814

Browse files
authored
Lock go to 1.21 on CI (#26433)
To prevent unwanted surprises with new minor versions of go, lock the version to minor version using [semver tilde syntax](https://github.com/npm/node-semver#tilde-ranges-123-12-1). We were already getting 1.21.0 since yesterday, so use that version now as minimum.
1 parent 2cbd377 commit 1772814

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-go@v4
1515
with:
16-
go-version: ">=1.20"
16+
go-version: "~1.21"
1717
check-latest: true
1818
- run: make generate-license generate-gitignore
1919
timeout-minutes: 40

.github/workflows/pull-compliance.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-go@v4
2121
with:
22-
go-version: ">=1.20"
22+
go-version: "~1.21"
2323
check-latest: true
2424
- run: make deps-backend deps-tools
2525
- run: make lint-backend
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v3
6060
- uses: actions/setup-go@v4
6161
with:
62-
go-version: ">=1.20"
62+
go-version: "~1.21"
6363
check-latest: true
6464
- run: make deps-backend deps-tools
6565
- run: make lint-go-windows lint-go-vet
@@ -76,7 +76,7 @@ jobs:
7676
- uses: actions/checkout@v3
7777
- uses: actions/setup-go@v4
7878
with:
79-
go-version: ">=1.20"
79+
go-version: "~1.21"
8080
check-latest: true
8181
- run: make deps-backend deps-tools
8282
- run: make lint-go
@@ -91,7 +91,7 @@ jobs:
9191
- uses: actions/checkout@v3
9292
- uses: actions/setup-go@v4
9393
with:
94-
go-version: ">=1.20"
94+
go-version: "~1.21"
9595
check-latest: true
9696
- run: make deps-backend deps-tools
9797
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
@@ -119,7 +119,7 @@ jobs:
119119
- uses: actions/checkout@v3
120120
- uses: actions/setup-go@v4
121121
with:
122-
go-version: ">=1.20"
122+
go-version: "~1.21"
123123
check-latest: true
124124
# no frontend build here as backend should be able to build
125125
# even without any frontend files

.github/workflows/pull-db-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v3
4242
- uses: actions/setup-go@v4
4343
with:
44-
go-version: ">=1.20"
44+
go-version: "~1.21"
4545
check-latest: true
4646
- name: Add hosts to /etc/hosts
4747
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v3
6767
- uses: actions/setup-go@v4
6868
with:
69-
go-version: ">=1.20"
69+
go-version: "~1.21"
7070
check-latest: true
7171
- run: make deps-backend
7272
- run: make backend
@@ -131,7 +131,7 @@ jobs:
131131
- uses: actions/checkout@v3
132132
- uses: actions/setup-go@v4
133133
with:
134-
go-version: ">=1.20"
134+
go-version: "~1.21"
135135
check-latest: true
136136
- name: Add hosts to /etc/hosts
137137
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts'
@@ -181,7 +181,7 @@ jobs:
181181
- uses: actions/checkout@v3
182182
- uses: actions/setup-go@v4
183183
with:
184-
go-version: ">=1.20"
184+
go-version: "~1.21"
185185
check-latest: true
186186
- name: Add hosts to /etc/hosts
187187
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
@@ -213,7 +213,7 @@ jobs:
213213
- uses: actions/checkout@v3
214214
- uses: actions/setup-go@v4
215215
with:
216-
go-version: ">=1.20"
216+
go-version: "~1.21"
217217
check-latest: true
218218
- name: Add hosts to /etc/hosts
219219
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts'
@@ -244,7 +244,7 @@ jobs:
244244
- uses: actions/checkout@v3
245245
- uses: actions/setup-go@v4
246246
with:
247-
go-version: ">=1.20"
247+
go-version: "~1.21"
248248
check-latest: true
249249
- name: Add hosts to /etc/hosts
250250
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts'

.github/workflows/pull-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-go@v4
2121
with:
22-
go-version: ">=1.20"
22+
go-version: "~1.21"
2323
check-latest: true
2424
- uses: actions/setup-node@v3
2525
with:

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- run: git fetch --unshallow --quiet --tags --force
1515
- uses: actions/setup-go@v4
1616
with:
17-
go-version: ">=1.20"
17+
go-version: "~1.21"
1818
check-latest: true
1919
- uses: actions/setup-node@v3
2020
with:

0 commit comments

Comments
 (0)