-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
golangci-lint go list seemingly recompiles go-sqlite3 everytime an lsp is connected #5010
Comments
Hello, without a reproducible example (outside of the LSP), it's not really possible to diagnose this issue. |
Hello, Yes, the reproducible example is running Would you like something more specific? |
Eh, I'll be kinder. I'm really starting this bug report asking if you would know of anything in golangci-lint that does recompiles or cgo builds or something for that wrt a project's dependencies such as |
sorry, but you don't provide any reproducible examples. golangci-lint doesn't compile. |
You are seeing a process which calls Without a concrete reproducible example, it's difficult to answer your question. |
What do you make of this process line then?
This is calling |
Now that I'm searching around for go list I ran into these issues:
So perhaps the issue is that golangci-lint is requesting |
Are there options in Here's the
|
There is no option for that. This call comes from The analysis required the same constraint as a Go compilation to be able to analyze the code. If you are able to provide a reproducible example, I will be able to have a better diagnostic. |
Maybe instead of a bug report we can turn this issue into a feature request for disabling cgo analysis or otherwise overriding the What do you think? |
I think I already asked you 3 times a reproducible example. |
I'm not sure that you wish to provide any help here. I'll close out this request in the meantime - and leave it online so future folks can at least search for similar behaviour with cgo. For now the resolution is to run
In the future I implore you to help your users investigate problems before requiring such a time committment to create a new public GH repo with a smattering of dependencies. |
I'm not sure you were here to get any help. I asked you a basic thing, several times, and you just ignored it.
You don't need to create a repo, you just need to provide the content of some files, a simple example. In the future, I implore you to follow the issue template and not to ignore comments. |
Welcome
typecheck
section of the FAQ.Description of the problem
Everytime I load neovim with
golangci-lint-langserver
I see processes trying to compile cgo versions ofgo-sqlite3
for our project (which includes this dep btw).I can't quite figure out why go list would be doing this, so I thought I'd ask.
I'm noticing this happens when directly running
golangci-lint run
too.I see processes like this running when
golangci-lint run
starts:Version of golangci-lint
Build from source because we use a custom plugin. I have the plugin disabled for the purposes of this bug report.
Configuration
In neovim I run with args
--config path/to/.golangci.yml --out-format json --timeout 30s
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
// add your code here
Validation
Supporter
The text was updated successfully, but these errors were encountered: