mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-02-21 19:23:03 +00:00
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:
@@ -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
|
||||
|
||||
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user