exclude vendor directory from unit tests

How do I exclude the 'vendor' directory when running all the unit tests for my project? When I view the Preferences > Project Structure, 'vendor' shows 'excluded'. I don't see an intuitive way to do so in the IDE, nor did I find how to do so when reviewing the docs and searching the web. I am new to goland and also golang.

goland 2018.1.2

golang 1.8.7

0
3 comments
Official comment

Please upgrade to Go 1.10 or newer as this was fixed in that version of Go.

Avatar
Permanently deleted user

Is there a workaround (i.e. a flag that can be set)?

0

Unfortunately, there is not as this is a problem that was present in Go itself so the IDE cannot do anything about it. I'm sorry I don't have a better answer for you.

0

Please sign in to leave a comment.