Skip to content

Commit 58ce999

Browse files
authored
Bump Go to 1.24 (#110)
It would be great to use https://pkg.go.dev/sync/atomic#Pointer for #109, but it requires a newer version of Go. Also, drop `vendor/` because it does not make sense to keep it in the library.
1 parent afb141d commit 58ce999

39 files changed

+10
-24012
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Setup Go
11-
uses: actions/setup-go@v5
11+
uses: actions/setup-go@v6
1212
with:
13-
go-version: stable
13+
go-version: oldstable
1414
id: go
1515
- name: Code checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
- name: Test
1818
run: |
1919
go test -v ./... -coverprofile=coverage.txt -covermode=atomic
@@ -31,4 +31,3 @@ jobs:
3131
with:
3232
token: ${{secrets.CODECOV_TOKEN}}
3333
files: ./coverage.txt
34-

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module github.com/VictoriaMetrics/metrics
22

3+
go 1.24.0
4+
5+
toolchain go1.25.5
6+
37
require (
48
github.com/valyala/histogram v1.2.0
5-
golang.org/x/sys v0.15.0
9+
golang.org/x/sys v0.38.0
610
)
711

812
require github.com/valyala/fastrand v1.1.0 // indirect
9-
10-
go 1.18

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ github.com/valyala/fastrand v1.1.0 h1:f+5HkLW4rsgzdNoleUOB69hyT9IlD2ZQh9GyDMfb5G
22
github.com/valyala/fastrand v1.1.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002oeRzjapQ=
33
github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ=
44
github.com/valyala/histogram v1.2.0/go.mod h1:Hb4kBwb4UxsaNbbbh+RRz8ZR6pdodR57tzWUS3BUzXY=
5-
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
6-
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
5+
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
6+
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=

vendor/github.com/valyala/fastrand/.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

vendor/github.com/valyala/fastrand/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/valyala/fastrand/README.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

vendor/github.com/valyala/fastrand/fastrand.go

Lines changed: 0 additions & 79 deletions
This file was deleted.

vendor/github.com/valyala/histogram/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/valyala/histogram/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)