Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gomodguard: fix problem where duplicate issues were being reported #2018

Merged
merged 3 commits into from May 27, 2021

Conversation

ryancurrah
Copy link
Member

@ryancurrah ryancurrah commented May 27, 2021

Gomodguard was saving issues to a global variable and when it was the process issues functioned returned results it would end up returning duplicates. This issue solves that by the process function returning only new issues found.

Also ensure we only configure and initialize gomodguard once by removing those steps from the Run func.

ryancurrah/gomodguard@v1.2.0...v1.2.1

Gomodguard was saving issues to a global variable and when it was the process issues functioned returned results it would end up returning duplicates. This issue solves that by the process function returning only new issues found.
@ryancurrah ryancurrah added the bug Something isn't working label May 27, 2021
@ryancurrah ryancurrah requested review from ldez and SVilgelm May 27, 2021 19:39
@ldez ldez changed the title fix(gomodguard): fix problem where duplicate issues were being reported gomodguard: fix problem where duplicate issues were being reported May 27, 2021
pkg/golinters/gomodguard.go Outdated Show resolved Hide resolved
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

nitpic

pkg/golinters/gomodguard.go Outdated Show resolved Hide resolved
Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
@ryancurrah
Copy link
Member Author

nitpic

resolved

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit 7776b54 into golangci:master May 27, 2021
SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.41 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants