File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ XGO_VERSION := go-1.25.x
3232AIR_PACKAGE ?= github.com/air-verse/air@v1
3333EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
3434GOFUMPT_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
3636GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.15
3737MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.7.0
3838SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.33.1
3939XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
4040GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
4141GOVULNCHECK_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
4444DOCKER_IMAGE ?= gitea/gitea
4545DOCKER_TAG ?= latest
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ""
You can’t perform that action at this time.
0 commit comments