Skip to content

Is it possible to ignore some dependencies from checking? #1241

Answered by dominikh
jskiba asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jskiba
Comment options

@dominikh
Comment options

@linnjason678
Comment options

Answer selected by jskiba
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants