Skip to content

Commit 394625d

Browse files
authored
Merge pull request #6465 from oasisprotocol/peternose/internal/bump-go-1.26.0
go: Bump Go to 1.26.0
2 parents c882498 + 2e45287 commit 394625d

18 files changed

Lines changed: 34 additions & 37 deletions

File tree

.changelog/6465.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
go: Bump Go to 1.26.0

.github/workflows/ci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Go
4747
uses: actions/setup-go@v6
4848
with:
49-
go-version: ">=1.25.5"
49+
go-version: ">=1.26.0"
5050
- name: Set up Rust
5151
run: rustup show
5252
- name: Install dependencies

.github/workflows/ci-reproducibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
env:
1717
CURL_CMD: curl --proto =https --tlsv1.2 --location --silent --show-error --fail
1818
GORELEASER_URL_PREFIX: https://github.com/goreleaser/goreleaser/releases/download/
19-
GORELEASER_VERSION: 2.9.0
19+
GORELEASER_VERSION: 2.13.3
2020
JEMALLOC_URL_PREFIX: https://github.com/jemalloc/jemalloc/releases/download/
2121
JEMALLOC_VERSION: 5.2.1
2222
JEMALLOC_CHECKSUM: 34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Go
4040
uses: actions/setup-go@v6
4141
with:
42-
go-version: ">=1.25.5"
42+
go-version: ">=1.26.0"
4343
- name: Set up Rust
4444
working-directory: build${{ matrix.build_number }}
4545
run: rustup show

.github/workflows/release-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
env:
1414
CURL_CMD: curl --proto =https --tlsv1.2 --location --silent --show-error --fail
1515
GORELEASER_URL_PREFIX: https://github.com/goreleaser/goreleaser/releases/download/
16-
GORELEASER_VERSION: 2.9.0
16+
GORELEASER_VERSION: 2.13.3
1717
JEMALLOC_URL_PREFIX: https://github.com/jemalloc/jemalloc/releases/download/
1818
JEMALLOC_VERSION: 5.2.1
1919
JEMALLOC_CHECKSUM: 34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Go
3636
uses: actions/setup-go@v6
3737
with:
38-
go-version: ">=1.25.5"
38+
go-version: ">=1.26.0"
3939
- name: Set up Rust
4040
run: rustup show
4141
- name: Install Oasis Node prerequisites

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
env:
1616
CURL_CMD: curl --proto =https --tlsv1.2 --location --silent --show-error --fail
1717
GORELEASER_URL_PREFIX: https://github.com/goreleaser/goreleaser/releases/download/
18-
GORELEASER_VERSION: 2.9.0
18+
GORELEASER_VERSION: 2.13.3
1919
JEMALLOC_URL_PREFIX: https://github.com/jemalloc/jemalloc/releases/download/
2020
JEMALLOC_VERSION: 5.2.1
2121
JEMALLOC_CHECKSUM: 34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6
@@ -38,7 +38,7 @@ jobs:
3838
- name: Set up Go
3939
uses: actions/setup-go@v6
4040
with:
41-
go-version: ">=1.25.5"
41+
go-version: ">=1.26.0"
4242

4343
- name: Set up Rust
4444
run: rustup show

docker/oasis-core-dev/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM ubuntu:24.04
22

33
# Package versions.
4-
ARG GO_VERSION=1.25.5
4+
ARG GO_VERSION=1.26.0
55
ARG GO_NANCY_VERSION=1.0.33
66
ARG GO_NANCY_CHECKSUM=a4bf5290d41b095c04f941ed5380674770c79d59735e33b1bd07a5cd5fbb135d
77
ARG GO_PROTOC_VERSION=3.6.1
88
ARG GO_PROTOC_GEN_GO_VERSION=1.21.0
9-
ARG GOLANGCILINT_VERSION=2.8.0
9+
ARG GOLANGCILINT_VERSION=2.10.1
1010
ARG GOCOVMERGE_VERSION=b5bfa59ec0adc420475f97f89b58045c721d761c
1111
ARG GOFUMPT_VERSION=v0.8.0
1212
ARG GOIMPORTS_VERSION=v0.36.0

docs/development-setup/prerequisites.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Core:
4040
```
4141
<!-- markdownlint-enable line-length -->
4242

43-
* [Go] (at least version 1.25.5).
43+
* [Go] (at least version 1.26.0).
4444

4545
If your distribution provides a new-enough version of Go, just use that.
4646

@@ -52,18 +52,18 @@ Core:
5252
* [ensure `$GOPATH/bin` is in your `PATH`](
5353
https://tip.golang.org/doc/code.html#GOPATH),
5454
* [install the desired version of Go](
55-
https://golang.org/doc/install#extra_versions), e.g. 1.25.5, with:
55+
https://golang.org/doc/install#extra_versions), e.g. 1.26.0, with:
5656

5757
```
58-
go install golang.org/dl/go1.25.5@latest
59-
go1.25.5 download
58+
go install golang.org/dl/go1.26.0@latest
59+
go1.26.0 download
6060
```
6161
6262
* instruct the build system to use this particular version of Go by setting
6363
the `OASIS_GO` environment variable in your `~/.bashrc`:
6464
6565
```
66-
export OASIS_GO=go1.25.5
66+
export OASIS_GO=go1.26.0
6767
```
6868
6969
* [Rust].
@@ -151,7 +151,7 @@ Core:
151151
```
152152
curl -sSfL \
153153
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
154-
| sh -s -- -b $(${OASIS_GO:-go} env GOPATH)/bin v2.8.0
154+
| sh -s -- -b $(${OASIS_GO:-go} env GOPATH)/bin v2.10.1
155155
```
156156
157157
* (**OPTIONAL**) [protoc-gen-go].

go/common/crypto/mrae/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ func TestBoxIntegration(t *testing.T, impl Box, ctor func([]byte) (cipher.AEAD,
9090
for i := range n {
9191
n[i] = byte(i)
9292
}
93-
for i := range aad {
93+
for i := range len(aad) {
9494
aad[i] = byte(i + nonceSize)
9595
}
96-
for i := range msg {
96+
for i := range len(msg) {
9797
msg[i] = byte(i + nonceSize + len(aad))
9898
}
9999

go/common/grpc/errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func TestErrorMapping(t *testing.T) {
169169
require.NoError(err, "TempFile")
170170
// Remove the file as we only need the name.
171171
f.Close()
172-
os.Remove(f.Name())
172+
os.Remove(f.Name()) //nolint:gosec
173173

174174
cfg := &ServerConfig{
175175
Path: f.Name(),

go/common/sgx/pcs/tcb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func (tl *TCBLevel) matches(sgxCompSvn [16]int32, tdxCompSvn *[16]byte, pcesvn u
457457
// otherwise move to the next item on TCB Levels list.
458458
for i, comp := range tl.TCB.SGXComponents {
459459
// At least one SVN is lower, no match.
460-
if sgxCompSvn[i] < comp.SVN {
460+
if sgxCompSvn[i] < comp.SVN { //nolint:gosec
461461
return false
462462
}
463463
}

0 commit comments

Comments
 (0)