Skip to content

Commit 8bc5b55

Browse files
authored
upgrade to go 1.24 and fix lint (#154)
* upgrade to go 1.24 and fix lint Signed-off-by: yeya24 <benye@amazon.com> * fix lint for randRange Signed-off-by: yeya24 <benye@amazon.com> --------- Signed-off-by: yeya24 <benye@amazon.com>
1 parent 5f8a059 commit 8bc5b55

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
go-version-file: .go-version
3333
cache: true
3434
- name: Golangci-lint
35-
uses: golangci/golangci-lint-action@v6.2.0
35+
uses: golangci/golangci-lint-action@v6.5.1

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/cortexproject/promqlsmith
22

3-
go 1.22.0
4-
5-
toolchain go1.23.2
3+
go 1.24.0
64

75
require (
86
github.com/prometheus/prometheus v0.55.1

walk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,6 @@ func getOutputSeries(expr parser.Expr) ([]labels.Labels, bool) {
853853
return lbls, stop
854854
}
855855

856-
func randRange(min, max int) int {
857-
return rand.Intn(max-min) + min
856+
func randRange(low, high int) int {
857+
return rand.Intn(high-low) + low
858858
}

0 commit comments

Comments
 (0)