Skip to content

Update build_queue.go #2859

Update build_queue.go

Update build_queue.go #2859

GitHub Actions / golangci failed Jul 26, 2024 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (18)

item.go|17 col 9| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
item.go|18 col 9| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
item.go|19 col 9| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
item.go|25 col 16| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
webhook.go|30 col 15| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
webhook.go|31 col 15| SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
item_test.go|44 col 8| SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
item_test.go|60 col 8| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
item_test.go|108 col 10| SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|21 col 35| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|22 col 20| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/build_queue.go|34 col 31| SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|44 col 29| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|98 col 33| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/schedule.go|99 col 10| SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|105 col 31| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|106 col 16| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
database/worker.go|167 col 27| SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)

Filtered Findings (0)

Annotations

Check failure on line 17 in item.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item.go#L17

SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item.go:17:9: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
	Build *library.Build `json:"build"`
	       ^

Check failure on line 18 in item.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item.go#L18

SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item.go:18:9: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
	Repo  *library.Repo  `json:"repo"`
	       ^

Check failure on line 19 in item.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item.go#L19

SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item.go:19:9: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
	User  *library.User  `json:"user"`
	       ^

Check failure on line 25 in item.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item.go#L25

SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item.go:25:16: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
func ToItem(b *library.Build, r *library.Repo, u *library.User) *Item {
               ^

Check failure on line 30 in webhook.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] webhook.go#L30

SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
webhook.go:30:15: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
	Repo        *library.Repo
	             ^

Check failure on line 31 in webhook.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] webhook.go#L31

SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
webhook.go:31:15: SA1019: library.Build is deprecated: use Build from github.com/go-vela/server/api/types instead. (staticcheck)
	Build       *library.Build
	             ^

Check failure on line 44 in item_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item_test.go#L44

SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item_test.go:44:8: SA1019: library.Repo is deprecated: use Repo from github.com/go-vela/server/api/types instead. (staticcheck)
	r := &library.Repo{
	      ^

Check failure on line 60 in item_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item_test.go#L60

SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item_test.go:60:8: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
	u := &library.User{
	      ^

Check failure on line 108 in item_test.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] item_test.go#L108

SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
item_test.go:108:10: SA1019: library.User is deprecated: use User from github.com/go-vela/server/api/types instead. (staticcheck)
		User: &library.User{
		       ^

Check failure on line 21 in database/build_queue.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/build_queue.go#L21

SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:21: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 22 in database/build_queue.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/build_queue.go#L22

SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:22: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 34 in database/build_queue.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/build_queue.go#L34

SA1019: library.BuildQueue is deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/build_queue.go:34: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 44 in database/schedule.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/schedule.go#L44

SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:44:29: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
func ScheduleFromLibrary(s *library.Schedule) *Schedule {
                            ^

Check failure on line 98 in database/schedule.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/schedule.go#L98

SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:98:33: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
func (s *Schedule) ToLibrary() *library.Schedule {
                                ^

Check failure on line 99 in database/schedule.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/schedule.go#L99

SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/schedule.go:99:10: SA1019: library.Schedule is deprecated: use Schedule from github.com/go-vela/server/api/types instead. (staticcheck)
	return &library.Schedule{
	        ^

Check failure on line 105 in database/worker.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/worker.go#L105

SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/worker.go:105:31: SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
func (w *Worker) ToLibrary() *library.Worker {
                              ^

Check failure on line 106 in database/worker.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/worker.go#L106

SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/worker.go:106:16: SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
	worker := new(library.Worker)
	              ^

Check failure on line 167 in database/worker.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] database/worker.go#L167

SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
Raw output
database/worker.go:167:27: SA1019: library.Worker is deprecated: use Worker from github.com/go-vela/server/api/types instead. (staticcheck)
func WorkerFromLibrary(w *library.Worker) *Worker {
                          ^