Skip to content

Commit 18416cb

Browse files
committed
bump go
1 parent 0924924 commit 18416cb

68 files changed

Lines changed: 1208 additions & 606 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: set up go 1.23
15+
- name: set up go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: "1.23"
18+
go-version: "stable"
1919
cache: false
2020
id: go
2121

2222
- name: checkout
2323
uses: actions/checkout@v4
2424

2525
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@v4
26+
uses: golangci/golangci-lint-action@v7
2727
with:
2828
version: latest
2929

@@ -32,4 +32,3 @@ jobs:
3232
make build
3333
build/hub --version
3434
build/hub s --help
35-

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ jobs:
2929
images: ghcr.io/psvmcc/hub
3030

3131
- name: Build and push Docker image
32-
uses: docker/build-push-action@v5
32+
uses: docker/build-push-action@v6
3333
with:
3434
context: .
3535
push: true
3636
tags: ${{ steps.meta.outputs.tags }}
3737
labels: ${{ steps.meta.outputs.labels }}
3838

3939
- name: run goreleaser
40-
uses: goreleaser/goreleaser-action@v5
40+
uses: goreleaser/goreleaser-action@v6
4141
with:
42-
version: latest
42+
version: v2
4343
args: release --clean
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.golangci.yml

Lines changed: 54 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,61 @@
1-
run:
2-
timeout: 5m
3-
output:
4-
format: tab
5-
6-
linters-settings:
7-
govet:
8-
shadow: true
9-
golint:
10-
min-confidence: 0.1
11-
maligned:
12-
suggest-new: true
13-
goconst:
14-
min-len: 2
15-
min-occurrences: 2
16-
misspell:
17-
locale: US
18-
lll:
19-
line-length: 140
20-
gocritic:
21-
enabled-tags:
22-
- performance
23-
- style
24-
- experimental
25-
disabled-checks:
26-
- wrapperFunc
27-
- hugeParam
28-
- rangeValCopy
29-
- singleCaseSwitch
30-
- ifElseChain
31-
1+
version: "2"
322
linters:
3+
default: none
334
enable:
34-
- gosimple
35-
- staticcheck
36-
- unused
37-
- revive
38-
- govet
39-
- unconvert
40-
- gosec
5+
- copyloopvar
416
- dupl
42-
- misspell
43-
- unused
44-
- typecheck
45-
- ineffassign
46-
- stylecheck
477
- gochecknoinits
48-
- copyloopvar
498
- gocritic
9+
- gosec
10+
- govet
11+
- ineffassign
12+
- misspell
5013
- nakedret
51-
- gosimple
5214
- prealloc
53-
fast: false
54-
disable-all: true
55-
56-
issues:
57-
exclude-dirs:
58-
- vendor
59-
exclude-rules:
60-
- text: "should have comment or be unexported"
61-
linters:
62-
- revive
63-
- text: "package-comments: should have a package comment"
64-
linters:
65-
- revive
66-
- text: "at least one file in a package should have a package comment"
67-
linters:
68-
- stylecheck
69-
exclude-use-default: false
15+
- revive
16+
- staticcheck
17+
- unconvert
18+
- unused
19+
settings:
20+
goconst:
21+
min-len: 2
22+
min-occurrences: 2
23+
gocritic:
24+
disabled-checks:
25+
- wrapperFunc
26+
- hugeParam
27+
- rangeValCopy
28+
- singleCaseSwitch
29+
- ifElseChain
30+
enabled-tags:
31+
- performance
32+
- style
33+
- experimental
34+
lll:
35+
line-length: 140
36+
misspell:
37+
locale: US
38+
exclusions:
39+
generated: lax
40+
rules:
41+
- linters:
42+
- revive
43+
text: should have comment or be unexported
44+
- linters:
45+
- revive
46+
text: 'package-comments: should have a package comment'
47+
- linters:
48+
- staticcheck
49+
text: at least one file in a package should have a package comment
50+
paths:
51+
- vendor
52+
- third_party$
53+
- builtin$
54+
- examples$
55+
formatters:
56+
exclusions:
57+
generated: lax
58+
paths:
59+
- third_party$
60+
- builtin$
61+
- examples$

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
version: 2
23
builds:
34
- env:
45
- GO111MODULE=on

Dockerfile

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

33
ARG GIT_BRANCH
44
ARG GITHUB_SHA

go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module github.com/psvmcc/hub
22

3-
go 1.23.4
3+
go 1.24.1
44

55
require (
6-
github.com/VictoriaMetrics/metrics v1.35.1
6+
github.com/VictoriaMetrics/metrics v1.35.2
77
github.com/labstack/echo/v4 v4.13.3
8-
github.com/urfave/cli/v2 v2.27.5
8+
github.com/urfave/cli/v2 v2.27.6
99
go.uber.org/zap v1.27.0
1010
gopkg.in/yaml.v3 v3.0.1
1111
)
1212

1313
require (
1414
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
1515
github.com/labstack/gommon v0.4.2 // indirect
16-
github.com/mattn/go-colorable v0.1.13 // indirect
16+
github.com/mattn/go-colorable v0.1.14 // indirect
1717
github.com/mattn/go-isatty v0.0.20 // indirect
1818
github.com/russross/blackfriday/v2 v2.1.0 // indirect
1919
github.com/valyala/bytebufferpool v1.0.0 // indirect
@@ -22,8 +22,8 @@ require (
2222
github.com/valyala/histogram v1.2.0 // indirect
2323
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
2424
go.uber.org/multierr v1.11.0 // indirect
25-
golang.org/x/crypto v0.31.0 // indirect
26-
golang.org/x/net v0.33.0 // indirect
27-
golang.org/x/sys v0.28.0 // indirect
28-
golang.org/x/text v0.21.0 // indirect
25+
golang.org/x/crypto v0.36.0 // indirect
26+
golang.org/x/net v0.38.0 // indirect
27+
golang.org/x/sys v0.31.0 // indirect
28+
golang.org/x/text v0.23.0 // indirect
2929
)

go.sum

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/VictoriaMetrics/metrics v1.35.1 h1:o84wtBKQbzLdDy14XeskkCZih6anG+veZ1SwJHFGwrU=
2-
github.com/VictoriaMetrics/metrics v1.35.1/go.mod h1:r7hveu6xMdUACXvB8TYdAj8WEsKzWB0EkpJN+RDtOf8=
1+
github.com/VictoriaMetrics/metrics v1.35.2 h1:Bj6L6ExfnakZKYPpi7mGUnkJP4NGQz2v5wiChhXNyWQ=
2+
github.com/VictoriaMetrics/metrics v1.35.2/go.mod h1:r7hveu6xMdUACXvB8TYdAj8WEsKzWB0EkpJN+RDtOf8=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0=
44
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -8,9 +8,8 @@ github.com/labstack/echo/v4 v4.13.3 h1:pwhpCPrTl5qry5HRdM5FwdXnhXSLSY+WE+YQSeCaa
88
github.com/labstack/echo/v4 v4.13.3/go.mod h1:o90YNEeQWjDozo584l7AwhJMHN0bOC4tAfg+Xox9q5g=
99
github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0=
1010
github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU=
11-
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
12-
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
13-
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
11+
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
12+
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
1413
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
1514
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
1615
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -19,8 +18,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
1918
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
2019
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
2120
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
22-
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
23-
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
21+
github.com/urfave/cli/v2 v2.27.6 h1:VdRdS98FNhKZ8/Az8B7MTyGQmpIr36O1EHybx/LaZ4g=
22+
github.com/urfave/cli/v2 v2.27.6/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
2423
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
2524
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
2625
github.com/valyala/fastrand v1.1.0 h1:f+5HkLW4rsgzdNoleUOB69hyT9IlD2ZQh9GyDMfb5G8=
@@ -37,16 +36,15 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
3736
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
3837
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
3938
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
40-
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
41-
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
42-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
43-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
44-
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
39+
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
40+
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
41+
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
42+
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
4543
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
46-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
47-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
48-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
49-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
44+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
45+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
46+
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
47+
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
5048
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
5149
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
5250
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

vendor/github.com/VictoriaMetrics/metrics/summary.go

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mattn/go-colorable/colorable_appengine.go

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

vendor/github.com/mattn/go-colorable/colorable_others.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)