Skip to content

Commit a7739a5

Browse files
committed
all: Upgrade Go to 1.23.1
1 parent d8073f3 commit a7739a5

File tree

20 files changed

+136
-108
lines changed

20 files changed

+136
-108
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929
- uses: actions/setup-go@v5
3030
with:
31-
go-version: '1.22'
31+
go-version: '1.23'
3232

3333
# Initializes the CodeQL tools for scanning.
3434
- name: Initialize CodeQL

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '**.md'
77
- .gitignore
88
env:
9-
GO_VERSION: 1.22.1
9+
GO_VERSION: 1.23.1
1010
jobs:
1111
lint:
1212
name: 'Code linters'

.golangci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
run:
44
timeout: 20m
55
tests: true
6-
# default is true. Enables skipping of directories:
7-
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
8-
skip-dirs-use-default: true
9-
skip-files:
10-
- core/genesis_alloc.go
116

127
linters:
138
disable-all: true
@@ -23,7 +18,6 @@ linters:
2318
- staticcheck
2419
- bidichk
2520
- durationcheck
26-
- exportloopref
2721
- whitespace
2822

2923
# - structcheck # lots of false positives
@@ -43,6 +37,8 @@ linters-settings:
4337
min-occurrences: 6 # minimum number of occurrences
4438

4539
issues:
40+
exclude-files:
41+
- core/genesis_alloc.go
4642
exclude-rules:
4743
- path: crypto/bn256/cloudflare/optate.go
4844
linters:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.22-alpine as builder
7+
FROM golang:1.23-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Dockerfile.alltools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.22-alpine as builder
7+
FROM golang:1.23-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ The version control policy of this project follows that of ibet-Network.
2222
Currently, the ibet Network is built using a node client based on v24.4.0 of GoQuorum.
2323
However, it has been variously patched to be optimized for ibet Network. For example:
2424
- The default block generation interval is set to 1 second.
25-
- Fully supports Go 1.22 and applies new 3rd party packages from a security perspective.
25+
- Fully supports Go 1.23 and applies new 3rd party packages from a security perspective.
2626
- Made temporary fixes for bugs before they were fixed in the original GoQuorum.
2727

2828
## Building the source
29-
Building quorum requires both a Go (version 1.22) and a C compiler.
29+
Building quorum requires both a Go (version 1.23) and a C compiler.
3030
You can install them using your favourite package manager.
3131
Once the dependencies are installed, run
3232
```

accounts/abi/unpack_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ func TestOOMMaliciousInput(t *testing.T) {
909909
}
910910
encb, err := hex.DecodeString(test.enc)
911911
if err != nil {
912-
t.Fatalf("invalid hex: %s" + test.enc)
912+
t.Fatalf("invalid hex: %s", test.enc)
913913
}
914914
_, err = abi.Methods["method"].Outputs.UnpackValues(encb)
915915
if err == nil {

build/checksums.txt

Lines changed: 104 additions & 64 deletions
Large diffs are not rendered by default.

build/ci.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ var (
130130
// This is the version of go that will be downloaded by
131131
//
132132
// go run ci.go install -dlgo
133-
dlgoVersion = "1.22.1"
133+
dlgoVersion = "1.23.1"
134134
)
135135

136136
var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))
@@ -327,7 +327,7 @@ func doLint(cmdline []string) {
327327

328328
// downloadLinter downloads and unpacks golangci-lint.
329329
func downloadLinter(cachedir string) string {
330-
const version = "1.56.2"
330+
const version = "1.61.0"
331331

332332
csdb := build.MustLoadChecksums("build/checksums.txt")
333333
arch := runtime.GOARCH

cmd/geth/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ func geth(ctx *cli.Context) error {
379379
// miner.
380380
func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend) {
381381
log.DoEmitCheckpoints = ctx.Bool(utils.EmitCheckpointsFlag.Name)
382-
debug.Memsize.Add("node", stack)
383382

384383
// raft mode does not support --exitwhensynced
385384
if ctx.Bool(utils.ExitWhenSyncedFlag.Name) && ctx.Bool(utils.RaftModeFlag.Name) {

0 commit comments

Comments
 (0)