Skip to content

Commit 9ac5f91

Browse files
committed
bump to latest versions of go and linter
1 parent ab272d0 commit 9ac5f91

File tree

4 files changed

+25
-45
lines changed

4 files changed

+25
-45
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
GOPATH: /go
3-
GOLANG_VERSION: "1.23.0"
4-
GOLINT_VERSION: "v1.60.3"
3+
GOLANG_VERSION: "1.24.4"
4+
GOLINT_VERSION: "v2.1.6"
55
COVERAGE_FILE: "coverage.out"
66
COBERTURA_FILE: "coverage.xml"
77

.golangci.yml

Lines changed: 21 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
1-
# Options for analysis running.
1+
version: "2"
22
run:
3-
# Number of operating system threads (`GOMAXPROCS`) that can execute golangci-lint simultaneously.
4-
# If it is explicitly set to 0 (i.e. not the default) then golangci-lint will automatically set the value to match Linux container CPU quota.
5-
# Default: the number of logical CPUs in the machine
6-
#concurrency: 4
7-
# Timeout for analysis, e.g. 30s, 5m.
8-
# Default: 1m
9-
timeout: 5m
10-
# Exit code when at least one issue was found.
11-
# Default: 1
12-
#issues-exit-code: 2
13-
# Include test files or not.
14-
# Default: true
15-
#tests: false
16-
# List of build tags, all linters use it.
17-
# Default: []
18-
#build-tags:
19-
# - mytag
20-
# If set, we pass it to "go list -mod={option}". From "go help modules":
21-
# If invoked with -mod=readonly, the go command is disallowed from the implicit
22-
# automatic updating of go.mod described above. Instead, it fails when any changes
23-
# to go.mod are needed. This setting is most useful to check that go.mod does
24-
# not need updates, such as in a continuous integration and testing system.
25-
# If invoked with -mod=vendor, the go command assumes that the vendor
26-
# directory holds the correct copies of dependencies and ignores
27-
# the dependency descriptions in go.mod.
28-
#
29-
# Allowed values: readonly|vendor|mod
30-
# Default: ""
3+
go: "1.24"
314
modules-download-mode: readonly
32-
# Allow multiple parallel golangci-lint instances running.
33-
# If false, golangci-lint acquires file lock on start.
34-
# Default: false
35-
#allow-parallel-runners: true
36-
# Allow multiple golangci-lint instances running, but serialize them around a lock.
37-
# If false, golangci-lint exits with an error if it fails to acquire file lock on start.
38-
# Default: false
39-
#allow-serial-runners: true
40-
# Define the Go version limit.
41-
# Mainly related to generics support since go1.18.
42-
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
43-
go: '1.23'
5+
linters:
6+
exclusions:
7+
generated: lax
8+
presets:
9+
- comments
10+
- common-false-positives
11+
- legacy
12+
- std-error-handling
13+
paths:
14+
- third_party$
15+
- builtin$
16+
- examples$
17+
formatters:
18+
exclusions:
19+
generated: lax
20+
paths:
21+
- third_party$
22+
- builtin$
23+
- examples$

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23 AS builder
1+
FROM golang:1.24 AS builder
22

33
WORKDIR /build
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/flare-foundation/verifier-xrp-indexer
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible

0 commit comments

Comments
 (0)