I use ginkgo
for the test tool, and glide
for the package manager.
ginkgo
requires that we install a binary to generate test files automatically. glide
, to the best of my knowledge, does not support the installation of binaries. So, I ended up using go get
to install the binary, along with its source files.
A problem is that glide
installs all the packages that it resolves by scanning the go files. This means that the source files of ginkgo
are also installed.
During the compilation, the packages in vendor
directory is prioritized. So this causes the situation where binary from $GOPATH/bin
is used, and source files from vendor
directory are used.
And it seems that go get
fetches files from master branch, where as glide
fetches the latest released version. So the test files that are generated by the binary is not compatible with the source files installed by glide.
Is there any way to prevent glide from installing some specific packages? Or are there any other better ways?