Repository navigation
|
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? |
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 |
Why ingnore, that seems to cause the issues. |
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 buildyour project.