chore(deps): update golangci/golangci-lint docker tag to v2.10.1 (#6138)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2026-02-21 10:42:37 +01:00
committed by GitHub
parent c6ec4f5fe5
commit 2012d292be
6 changed files with 8 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ steps:
lint:
depends_on:
- vendor
image: golangci/golangci-lint:v2.9.0
image: golangci/golangci-lint:v2.10.1
commands:
- make lint
when: *when

View File

@@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_VERSION := v0.9.2
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION := v2.9.0
GOLANGCI_LINT_VERSION := v2.10.1
# renovate: datasource=docker depName=docker.io/techknowlogick/xgo
XGO_VERSION := go-1.26.x

View File

@@ -35,11 +35,11 @@ func generateScriptPosix(commands []string, workDir string) string {
}
for _, command := range commands {
buf.WriteString(fmt.Sprintf(
fmt.Fprintf(&buf,
traceScript,
shellescape.Quote(command),
command,
))
)
}
return buf.String()

View File

@@ -34,11 +34,11 @@ func generateScriptWindows(commands []string, workDir string) string {
for _, command := range commands {
escaped := fmt.Sprintf("%q", command)
escaped = strings.ReplaceAll(escaped, "$", `\$`)
buf.WriteString(fmt.Sprintf(
fmt.Fprintf(&buf,
traceScriptWin,
escaped,
command,
))
)
}
return buf.String()

View File

@@ -17,7 +17,6 @@ package model
import (
"fmt"
"slices"
"strings"
"go.woodpecker-ci.org/woodpecker/v3/pipeline"
)
@@ -43,9 +42,7 @@ func (Task) TableName() string {
}
func (t *Task) String() string {
var sb strings.Builder
sb.WriteString(fmt.Sprintf("%s (%s) - %s", t.ID, t.Dependencies, t.DepStatus))
return sb.String()
return fmt.Sprintf("%s (%s) - %s", t.ID, t.Dependencies, t.DepStatus)
}
func (t *Task) ApplyLabelsFromRepo(r *Repo) error {

View File

@@ -88,7 +88,7 @@ type (
RepoPatch struct {
Config *string `json:"config_file,omitempty"`
// Deprecated: use Trusted (broken - only exists for backwards compatibility)
IsTrusted *bool `json:"-,omitempty"`
IsTrusted *bool `json:"-"`
Trusted *TrustedConfigurationPatch `json:"trusted,omitempty"`
RequireApproval *ApprovalMode `json:"require_approval,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`