Skip to content

fix(lint): silence deprecated gomodguard linter warning#4070

Merged
rchincha merged 1 commit into
project-zot:mainfrom
benoittgt:fix_gomodguard_v2
May 16, 2026
Merged

fix(lint): silence deprecated gomodguard linter warning#4070
rchincha merged 1 commit into
project-zot:mainfrom
benoittgt:fix_gomodguard_v2

Conversation

@benoittgt
Copy link
Copy Markdown
Contributor

What type of PR is this?

cleanup

Which issue does this PR fix:

None

What does this PR do / Why do we need it:

Remove warning:

WARN The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2.
WARN Suggested new configuration:
linters:
  enable:
    - gomodguard_v2

gomodguard_v2 is enabled by default https://github.com/golangci/golangci-lint/blob/8c90a87d9c9839599f0391fbf296009799165b12/.golangci.reference.yml#L69

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Remove warning:

```
WARN The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2.
WARN Suggested new configuration:
linters:
  enable:
    - gomodguard_v2
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Copy link
Copy Markdown
Contributor

@vrajashkr vrajashkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. LGTM.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.65%. Comparing base (5087d72) to head (e69302b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4070      +/-   ##
==========================================
- Coverage   91.68%   91.65%   -0.04%     
==========================================
  Files         199      199              
  Lines       28831    28831              
==========================================
- Hits        26435    26424      -11     
- Misses       1540     1550      +10     
- Partials      856      857       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rchincha rchincha merged commit 4d6bf18 into project-zot:main May 16, 2026
44 of 45 checks passed
@benoittgt benoittgt deleted the fix_gomodguard_v2 branch May 16, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants