chore(deps): update all non-major dependencies #3003
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (56)
database/build.go|366 col 44| G115: integer overflow conversion int -> int32 (gosec)
database/build.go|367 col 44| G115: integer overflow conversion int -> int32 (gosec)
database/hook.go|202 col 42| G115: integer overflow conversion int -> int32 (gosec)
database/build.go|51 col 16| SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
database/build.go|276 col 30| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build.go|277 col 15| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build.go|361 col 26| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_executable.go|136 col 40| SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_executable.go|137 col 25| SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_executable.go|159 col 36| SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|23 col 35| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|24 col 20| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|36 col 31| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/deployment.go|40 col 14| SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
database/deployment.go|118 col 20| SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
database/deployment.go|180 col 31| SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|136 col 29| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|137 col 14| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/hook.go|197 col 25| SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
database/log.go|113 col 28| SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
database/log.go|114 col 13| SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
database/log.go|149 col 24| SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
database/pipeline.go|145 col 33| SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
database/pipeline.go|146 col 18| SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
database/pipeline.go|210 col 29| SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|216 col 29| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|217 col 14| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo.go|309 col 25| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|46 col 29| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|100 col 33| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|101 col 10| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/secret.go|187 col 31| SA1019: library.Secret is deprecated: use Secret from github.com/go-vela/server/api/types instead. (staticcheck)
database/secret.go|188 col 16| SA1019: library.Secret is deprecated: use Secret from github.com/go-vela/server/api/types instead. (staticcheck)
database/secret.go|269 col 27| SA1019: library.Secret is deprecated: use Secret from github.com/go-vela/server/api/types instead. (staticcheck)
database/service.go|146 col 32| SA1019: library.Service is deprecated: use Service from github.com/go-vela/server/api/types instead. (staticcheck)
database/service.go|147 col 17| SA1019: library.Service is deprecated: use Service from github.com/go-vela/server/api/types instead. (staticcheck)
database/service.go|212 col 28| SA1019: library.Service is deprecated: use Service from github.com/go-vela/server/api/types instead. (staticcheck)
database/step.go|158 col 29| SA1019: library.Step is deprecated: use Step from github.com/go-vela/server/api/types instead. (staticcheck)
database/step.go|159 col 14| SA1019: library.Step is deprecated: use Step from github.com/go-vela/server/api/types instead. (staticcheck)
database/step.go|228 col 25| SA1019: library.Step is deprecated: use Step from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|205 col 29| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|206 col 14| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/user.go|267 col 25| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|107 col 31| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|108 col 16| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|169 col 27| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_test.go|143 col 24| SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
database/deployment_test.go|107 col 14| SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo_test.go|310 col 11| SA1019: library.Events is deprecated: use Events from github.com/go-vela/server/api/types instead. (staticcheck)
database/repo_test.go|311 col 16| SA1019: actions.Push is deprecated: use Push from github.com/go-vela/server/api/types/actions instead. (staticcheck)
database/build.go|9 col 2| SA1019: "github.com/go-vela/types/library" is deprecated: all library types for Vela have been moved to github.com/go-vela/server/api/types . (staticcheck)
database/build.go|10 col 2| SA1019: "github.com/go-vela/types/raw" is deprecated: all raw types for Vela have been moved to github.com/go-vela/server/compiler/types/raw . (staticcheck)
database/build_executable.go|10 col 2| SA1019: "github.com/go-vela/types/library" is deprecated: all library types for Vela have been moved to github.com/go-vela/server/api/types . (staticcheck)
yaml/stage.go|95 col 5| return statements should not be cuddled if block has more than two lines (wsl)
yaml/stage.go|101 col 2| return statements should not be cuddled if block has more than two lines (wsl)
pipeline/ruleset.go|136 col 1| cyclomatic complexity 31 of func (*Rules).Match
is high (> 30) (gocyclo)
Filtered Findings (0)
Annotations
Check failure on line 366 in database/build.go
github-actions / golangci
[golangci] database/build.go#L366
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/build.go:366:44: G115: integer overflow conversion int -> int32 (gosec)
Number: sql.NullInt32{Int32: int32(b.GetNumber()), Valid: true},
^
Check failure on line 367 in database/build.go
github-actions / golangci
[golangci] database/build.go#L367
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/build.go:367:44: G115: integer overflow conversion int -> int32 (gosec)
Parent: sql.NullInt32{Int32: int32(b.GetParent()), Valid: true},
^
Check failure on line 202 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L202
G115: integer overflow conversion int -> int32 (gosec)
Raw output
database/hook.go:202:42: G115: integer overflow conversion int -> int32 (gosec)
Number: sql.NullInt32{Int32: int32(h.GetNumber()), Valid: true},
^
Check failure on line 51 in database/build.go
github-actions / golangci
[golangci] database/build.go#L51
SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
Raw output
database/build.go:51:16: SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
DeployPayload raw.StringSliceMap `sql:"deploy_payload" gorm:"type:varchar(2000)"`
^
Check failure on line 276 in database/build.go
github-actions / golangci
[golangci] database/build.go#L276
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:276:30: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
func (b *Build) ToLibrary() *library.Build {
^
Check failure on line 277 in database/build.go
github-actions / golangci
[golangci] database/build.go#L277
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:277:15: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
build := new(library.Build)
^
Check failure on line 361 in database/build.go
github-actions / golangci
[golangci] database/build.go#L361
SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build.go:361:26: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
func BuildFromLibrary(b *library.Build) *Build {
^
Check failure on line 136 in database/build_executable.go
github-actions / golangci
[golangci] database/build_executable.go#L136
SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_executable.go:136:40: SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
func (b *BuildExecutable) ToLibrary() *library.BuildExecutable {
^
Check failure on line 137 in database/build_executable.go
github-actions / golangci
[golangci] database/build_executable.go#L137
SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_executable.go:137:25: SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
buildExecutable := new(library.BuildExecutable)
^
Check failure on line 159 in database/build_executable.go
github-actions / golangci
[golangci] database/build_executable.go#L159
SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_executable.go:159:36: SA1019: library.BuildExecutable is deprecated: use BuildExecutable from github.com/go-vela/server/api/types instead. (staticcheck)
func BuildExecutableFromLibrary(c *library.BuildExecutable) *BuildExecutable {
^
Check failure on line 23 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L23
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:23:35: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
func (b *BuildQueue) ToLibrary() *library.BuildQueue {
^
Check failure on line 24 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L24
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:24:20: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
buildQueue := new(library.BuildQueue)
^
Check failure on line 36 in database/build_queue.go
github-actions / golangci
[golangci] database/build_queue.go#L36
SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:36:31: SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
func BuildQueueFromLibrary(b *library.BuildQueue) *BuildQueue {
^
Check failure on line 40 in database/deployment.go
github-actions / golangci
[golangci] database/deployment.go#L40
SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
Raw output
database/deployment.go:40:14: SA1019: raw.StringSliceMap is deprecated: use StringSliceMap from github.com/go-vela/server/compiler/types/raw instead. (staticcheck)
Payload raw.StringSliceMap `sql:"payload"`
^
Check failure on line 118 in database/deployment.go
github-actions / golangci
[golangci] database/deployment.go#L118
SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/deployment.go:118:20: SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
deployment := new(library.Deployment)
^
Check failure on line 180 in database/deployment.go
github-actions / golangci
[golangci] database/deployment.go#L180
SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/deployment.go:180:31: SA1019: library.Deployment is deprecated: use Deployment from github.com/go-vela/server/api/types instead. (staticcheck)
func DeploymentFromLibrary(d *library.Deployment) *Deployment {
^
Check failure on line 136 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L136
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:136:29: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
func (h *Hook) ToLibrary() *library.Hook {
^
Check failure on line 137 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L137
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:137:14: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
hook := new(library.Hook)
^
Check failure on line 197 in database/hook.go
github-actions / golangci
[golangci] database/hook.go#L197
SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/hook.go:197:25: SA1019: library.Hook is deprecated: use Hook from github.com/go-vela/server/api/types instead. (staticcheck)
func HookFromLibrary(h *library.Hook) *Hook {
^
Check failure on line 113 in database/log.go
github-actions / golangci
[golangci] database/log.go#L113
SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/log.go:113:28: SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
func (l *Log) ToLibrary() *library.Log {
^
Check failure on line 114 in database/log.go
github-actions / golangci
[golangci] database/log.go#L114
SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/log.go:114:13: SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
log := new(library.Log)
^
Check failure on line 149 in database/log.go
github-actions / golangci
[golangci] database/log.go#L149
SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/log.go:149:24: SA1019: library.Log is deprecated: use Log from github.com/go-vela/server/api/types instead. (staticcheck)
func LogFromLibrary(l *library.Log) *Log {
^
Check failure on line 145 in database/pipeline.go
github-actions / golangci
[golangci] database/pipeline.go#L145
SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/pipeline.go:145:33: SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
func (p *Pipeline) ToLibrary() *library.Pipeline {
^
Check failure on line 146 in database/pipeline.go
github-actions / golangci
[golangci] database/pipeline.go#L146
SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/pipeline.go:146:18: SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
pipeline := new(library.Pipeline)
^
Check failure on line 210 in database/pipeline.go
github-actions / golangci
[golangci] database/pipeline.go#L210
SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/pipeline.go:210:29: SA1019: library.Pipeline is deprecated: use Pipeline from github.com/go-vela/server/api/types instead. (staticcheck)
func PipelineFromLibrary(p *library.Pipeline) *Pipeline {
^