Repository navigation
Closed
Labels
Description
What happened in your environment?
Lint is broken
Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint config path] in [/home/runner/work/oras/oras] ...
Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint config verify] in [/home/runner/work/oras/oras] ...
Running [/home/runner/golangci-lint-2.12.2-linux-amd64/golangci-lint run] in [/home/runner/work/oras/oras] ...
Error: cmd/oras/root/discover_test.go:35:42: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
func (t *cyclicReferrerTarget) Referrers(ctx context.Context, desc ocispec.Descriptor, artifactType string, fn func(referrers []ocispec.Descriptor) error) error {
^
Error: cmd/oras/root/discover_test.go:60:49: unused-parameter: parameter 'referrer' seems to be unused, consider removing or renaming it as _ (revive)
func (h *recordingDiscoverHandler) OnDiscovered(referrer, subject ocispec.Descriptor) error {
^
Error: internal/graph/graph_test.go:256:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
opts.FindPredecessors = func(ctx context.Context, src content.ReadOnlyGraphStorage, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) {
^
3 issues:
* revive: 3
level=warning msg="The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2."
level=warning msg="Suggested new configuration:\nlinters:\n enable:\n - gomodguard_v2\n"
level=warning msg="[runner/exclusion_rules] Skipped 0 issues by rules: [Text: \"var-naming: avoid package names\", Path: \"internal/\", Linters: \"revive\"]"
Error: issues found
Ran golangci-lint in 12617ms
What did you expect to happen?
No response
How can we reproduce it?
make lint
What is the version of your ORAS CLI?
main latest
What is your OS environment?
Any
Are you willing to submit PRs to fix it?
- Yes, I am willing to fix it.
Activity