-
I use https://github.com/godror/godror in my project and the problem is that it does not pass staticcheck but only when GOOS=windows is set. So I would like to make staticcheck ignore it, is there some way to do so? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Staticcheck doesn't check your dependencies, however it does require them to compile correctly. There is no way around that. That package uses cgo, so you can't trivially cross-compile it just by setting a different GOOS. You will have the same issue trying to |
Beta Was this translation helpful? Give feedback.
-
Why ingnore, that seems to cause the issues. |
Beta Was this translation helpful? Give feedback.
Staticcheck doesn't check your dependencies, however it does require them to compile correctly. There is no way around that. That package uses cgo, so you can't trivially cross-compile it just by setting a different GOOS. You will have the same issue trying to
go build
your project.