-
Notifications
You must be signed in to change notification settings - Fork 11
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
panics with reverted switch + external package #15
Comments
+1 |
Thank you for the detailed report. I think I see what the issue in exhaustive is. I will fix and tag a new release, and comment here when it's done. In the meantime, you may work around the issue by ignoring such switch statements in your code. |
This should be fixed in v0.3.1. The code that caused the panic is no longer present. A related test case has been added: exhaustive/testdata/switchtest/otherpkg/otherpkg.go Lines 32 to 38 in b3688ce
Thanks again for the detailed issue report! |
From the stack trace, it appears you were running The golangci-lint repo should automatically get the new exhaustive version when it upgrades its dependencies. But I also intend to expose some new exhaustive flags in golangci-lint (#20), so I plan to make a pull request to golangci-lint and manually upgrade the exhaustive version. Either way golangci-lint will get the upgraded exhaustive version by whichever of these two happens first. |
This merged golangci-lint golangci/golangci-lint#2344 PR upgrades exhaustive in golangci-lint with these changes. |
in this situation error appears:
The text was updated successfully, but these errors were encountered: