Skip to content

Commit a608b9e

Browse files
Update tool dependencies (#36445)
Updates all dependencies in `Makefile`. The go fix was done automatically, I just altered the variable name. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 5925433 commit a608b9e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ XGO_VERSION := go-1.25.x
3232
AIR_PACKAGE ?= github.com/air-verse/air@v1
3333
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
3434
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.9.2
35-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.2
35+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
3636
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.15
3737
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.7.0
3838
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.33.1
3939
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
4040
GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
4141
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1
42-
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1.7.9
42+
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1.7.10
4343

4444
DOCKER_IMAGE ?= gitea/gitea
4545
DOCKER_TAG ?= latest

modules/packages/nuget/symbol_extractor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ func ParseDebugHeaderID(r io.ReadSeeker) (string, error) {
142142
if _, err := r.Read(b); err != nil {
143143
return "", err
144144
}
145-
if i := bytes.IndexByte(b, 0); i != -1 {
146-
buf.Write(b[:i])
145+
if before, _, ok := bytes.Cut(b, []byte{0}); ok {
146+
buf.Write(before)
147147
return buf.String(), nil
148148
}
149149
buf.Write(b)

modules/validation/binding.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ func portOnly(hostport string) string {
219219
if !ok {
220220
return ""
221221
}
222-
if i := strings.Index(hostport, "]:"); i != -1 {
223-
return hostport[i+len("]:"):]
222+
if _, after2, ok2 := strings.Cut(hostport, "]:"); ok2 {
223+
return after2
224224
}
225225
if strings.Contains(hostport, "]") {
226226
return ""

0 commit comments

Comments
 (0)