-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
False hint for preallocation #991
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
Comments
This is related to prealloc linter. |
This should be fixed in master as of alexkohler/prealloc#18. |
Got it. The other way is to expose API in https://github.com/alexkohler/prealloc itself, so we can use it directly. Seems like the general reason of fork is that package is a command, not a library. |
The version of prealloc at github.com/golangci/prealloc has not been kept up to date with the latest changes. The upstream has recently been updated to allow importing, which means there is no longer a need for a fork. Fixes golangci#991
The forked version of prealloc at github.com/golangci/prealloc has not been kept up to date with the latest changes from the upstream repository, github.com/alexkohler/prealloc. This takes advantage of a recent refactor in the upstream to allow importing the logic directly as a package, which allows golangci to remove the overhead of maintaining a fork while effectively bumping the version of prealloc used. Fixes golangci#991
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
source code
The text was updated successfully, but these errors were encountered: