Skip to content

refactor(progress): generic progress tracking #2030

refactor(progress): generic progress tracking

refactor(progress): generic progress tracking #2030

Triggered via pull request December 30, 2024 06:23
Status Failure
Total duration 40s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint (1.23): cmd/oras/internal/display/handler.go#L33
could not import oras.land/oras/cmd/oras/internal/display/status (-: # oras.land/oras/cmd/oras/internal/display/status
lint (1.23): cmd/oras/internal/display/status/tty.go#L165
undefined: track.GraphTarget
lint (1.23): cmd/oras/internal/display/status/tty.go#L178
undefined: track.NewTarget) (typecheck)
lint (1.23): cmd/oras/internal/display/status/tty.go#L165
undefined: track.GraphTarget
lint (1.23): cmd/oras/internal/display/status/tty.go#L178
undefined: track.NewTarget
lint (1.23): cmd/oras/internal/display/status/tty_test.go#L75
cannot use &testutils.PromptDiscarder{} (value of type *testutils.PromptDiscarder) as "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget value in struct literal: *testutils.PromptDiscarder does not implement "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget (missing method Report)
lint (1.23): cmd/oras/internal/display/status/tty_test.go#L101
cannot use testutils.NewErrorPrompt(wantedError) (value of type *testutils.ErrorPrompt) as "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget value in struct literal: *testutils.ErrorPrompt does not implement "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget (missing method Report)
lint (1.23): cmd/oras/internal/display/status/tty_test.go#L112
cannot use &testutils.PromptDiscarder{} (value of type *testutils.PromptDiscarder) as "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget value in struct literal: *testutils.PromptDiscarder does not implement "oras.land/oras/cmd/oras/internal/display/status/track".GraphTarget (missing method Report) (typecheck)
lint (1.23): cmd/oras/internal/display/status/progress/manager_test.go#L44
m.Add undefined (type *manager has no field or method Add)
lint (1.23): cmd/oras/internal/display/status/progress/messenger_test.go#L28
messenger.Start undefined (type *Messenger has no field or method Start, but does have method start)
lint (1.23)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636