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: lint:
depends_on: depends_on:
- vendor - vendor
image: golangci/golangci-lint:v2.9.0 image: golangci/golangci-lint:v2.10.1
commands: commands:
- make lint - make lint
when: *when when: *when

View File

@@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt # renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_VERSION := v0.9.2 GOFUMPT_VERSION := v0.9.2
# renovate: datasource=github-releases depName=golangci/golangci-lint # 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 # renovate: datasource=docker depName=docker.io/techknowlogick/xgo
XGO_VERSION := go-1.26.x XGO_VERSION := go-1.26.x

View File

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

View File

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

View File

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

View File

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