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