Skip to content

Commit 37f77b6

Browse files
committed
go.mod: update minimum Go version to 1.23.0
The Go project started to unconditionally update the minimum Go version for golang.org/x/ dependencies to go1.23 > all: upgrade go directive to at least 1.23.0 [generated] > > By now Go 1.24.0 has been released, and Go 1.22 is no longer supported > per the Go Release Policy (https://go.dev/doc/devel/release#policy). > > For golang/go#69095. This means that this package will no longer be able to support any version below that when updating golang.org/x/sys
1 parent 7cc42f1 commit 37f77b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
build-and-test:
1313
strategy:
1414
matrix:
15-
# Oldest supported version is 1.18, plus the latest two releases.
16-
go-version: ['1.18', '1.23', '1.24']
15+
# Latest two supported releases.
16+
go-version: ['1.23', '1.24']
1717
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-14, macos-15, windows-2019, windows-2022]
1818
runs-on: ${{ matrix.os }}
1919

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/tklauser/numcpus
22

3-
go 1.18
3+
go 1.23.0
44

55
require golang.org/x/sys v0.30.0

0 commit comments

Comments
 (0)