-
-
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
"no export data for" error since v1.44 #3376
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, can you provide a reproducible example? |
Thanks for the speedy response @ldez! Sure, here's a reproducible example: https://github.com/albertteoh/repro-exportfile-missing |
I think it's problem related to CGO: $ go run .
# github.com/pebbe/go-proj-4/proj
In file included from ../../go/pkg/mod/github.com/pebbe/go-proj-4@v5.0.0+incompatible/proj/proj.go:33:
./proj.h:2:10: fatal error: proj_api.h: No such file or directory
2 | #include <proj_api.h>
| ^~~~~~~~~~~~
compilation terminated. |
Yup, I think you're right.
Thanks for your help @ldez! I'm closing this issue for now and will apply my learnings to our CI pipeline. |
Welcome
Description of the problem
Running the linter returns the following error:
After a bit of debugging, I found returning
nil
appears to prevent the error, but may just be a hack that hides a deeper problem, which I think is around understanding why github.com/pebbe/go-proj-4/proj doesn't have an exportFile.I'd be appreciative if someone could explain how exportFiles are generated and why it's missing for github.com/pebbe/go-proj-4/proj; or, if this is "expected", whether if my proposed change is an appropriate fix: https://github.com/golangci/golangci-lint/compare/master...albertteoh:golangci-lint:warn-instead-of-err-no-exportfile?expand=1.
Worth noting that I do not see this error when running with the docker image:
golangci/golangci-lint:v1.43-alpine
... and this error starts appearing from
golangci/golangci-lint:v1.44-alpine
.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
This affects a private repository. However, the dependency that seems to be the cause of this error is: github.com/pebbe/go-proj-4/proj
// add your code here
The text was updated successfully, but these errors were encountered: