-
Notifications
You must be signed in to change notification settings - Fork 333
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
Confusing CodeQL Error: Go files were found but not processed #2515
Comments
That does indeed look a bit confusing. The error originates from Looking at the last lines of the
Strangely enough, the summary lines in the log right before
|
@aibaars' suggestion for getting more information makes sense. You can download the CSV file to see which files were extracted and which ones weren't to see whether any that you care about weren't extracted.
We do not extract test files by default, which is indeed deliberate. The error you are seeing is ultimately just to warn you that there are |
Hi @mbg and @aibaars, code-scanning-files-extracted.csv I think it is working as expected (test files aren't extracted by default), but I am not sure why it's still reporting the error, which is showing up in the status page... and I would like to get rid of the error from the status page if it indeed worked as expected. |
Hi again @zliang-akamai 👋🏻 Great to hear that all the files you were expecting to have been extracted were extracted, and thank you for checking! We agree that it would be better if this error message did not show up on the tool status page in a case like this and we are working on some improvements in this area. |
Error: Go files were found but not processed
We are seeing a weird error complaining not all Go files were processed and the error also appears on the default CodeQL scan configuration.
We have some Go files with build tags for testing purposes, for example: https://github.com/linode/terraform-provider-linode/blob/dev/linode/stackscripts/framework_models_unit_test.go#L1, which are the files not included in the scan, but I think it should not trigger an error because generally
go build
won't build test files (correct me if I'm wrong on this).Is there any way to get more detailed error message or ignore the error from scanning status reporting?
And I think the correct behavior is to ignore test files not being built in the action.
The text was updated successfully, but these errors were encountered: