Skip to content

depguard: throw error only when the linter is called #3880

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

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

ldez
Copy link
Member

@ldez ldez commented Jun 2, 2023

I change our depguard fork to be able to handle the error.

Now the error (related to GOROOT) can only happen when the linter is called.

golangci/depguard@ed68d37...4f22f85

I created an issue on the depguard repository to discuss a change in the API.
OpenPeeDeeP/depguard#50

@ldez ldez added bug Something isn't working linter: update Update the linter implementation inside golangci-lint labels Jun 2, 2023
@ldez ldez requested a review from bombsimon June 2, 2023 13:34
@ldez ldez force-pushed the fix/depguard-errors branch from 7cefcd2 to fb88bd3 Compare June 2, 2023 13:35
@chmouel

This comment was marked as off-topic.

@ldez

This comment was marked as off-topic.

@chmouel

This comment was marked as off-topic.

@ldez

This comment was marked as off-topic.

Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

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

👍🏼

@ldez ldez merged commit 68be5ba into golangci:master Jun 2, 2023
@ldez ldez deleted the fix/depguard-errors branch June 2, 2023 20:43
@ldez ldez added this to the v1.53 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 linter: update Update the linter implementation inside golangci-lint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants