-
Notifications
You must be signed in to change notification settings - Fork 287
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
gcexportdata.NewImporter: huge impact on performance #713
Comments
@chavacava @mgechev this has a really huge impact on performance. |
it looks like this function is only used for go files' type checking. I'm not very formally with these go build tools, don't know what's the best replacement for it. |
@trim21 The replacement is defined inside the deprecation notice: https://github.com/golang/tools/blob/79f3242e4b2ee6f1bd987fdd0538e16451f7523e/go/gcexportdata/importer.go#L26 |
Hi @ldez, thanks for proposing this improvement. I'll work on it in the next days. |
Update: I have a working version where the problematic lib was replaced with TODO:
|
Using
|
I don't know how I can help you. related to #720 |
I'll connect with the Go team and see if there's anything we can do. |
Looks like lots of folks are out of office. Seems like Could you check and let me know? |
you can clone https://github.com/kubernetes-sigs/cluster-api to test your PR |
I tested your PR, and it seems to work, but I still need to test it inside golangci-lint. |
tested, looks good |
I did tests with golangci-lint and it seems to work as expected. |
Thanks for giving it a try! I'l let @chavacava review and merge. |
Released in v1.2.2. |
Moved windows_arm64 to the ignore list of |
Maybe you can create a another issue to track this problem? |
it seems $ goreleaser check
• loading config file file=.goreleaser.yml
• checking config:
• DEPRECATED: skipped windows/arm64 build on Go < 1.17 for compatibility, check https://goreleaser.com/deprecations/#builds-for-windowsarm64 for more info.
• config is valid Anyways i opened a PR to use 1.19 for release since i see we did the upgrade! also removed 1.16 build that keeps failing. #727 |
Good catch, @Clivern! Thank you for the fix. |
Describe the bug
gcexportdata.Find
has been rewritten:gcexportdata.NewImporter
usesgcexportdata.Find
.And
revive
usesgcexportdata.NewImporter
:revive/lint/package.go
Line 30 in 60e1ae4
To Reproduce
Steps to reproduce the behavior:
golang.org/x/tools
tov0.1.12-0.20220628192153-7743d1d949f1
Expected behavior
Run fast
Logs
Desktop (please complete the following information):
Additional context
gcexportdata.NewImporter
andgcexportdata.Find
are now deprecated.golangci/golangci-lint#2997 (comment)
The text was updated successfully, but these errors were encountered: