This is an example of using bazel rules with the vendor subdirectory introduced in go1.6.
This demonstrates some issues with the rules deined by bazelbuild/rules_go
Bazel should also be able to successfully run this:
$ bazel test //vendor/...
However this also fails.
Notice that there is a dependency from vendor/github.com/tinylib/msgp to vendor/github.com/philhofer/fwd, and that the fwd tests all run.
The msgp tests compile, but fail to link. It appears that the library output is not referenced correctly when the following command is run:
$ bazel test //vendor/... --verbose_failures
Bazel should also be able to successfully run this:
$ git clone https://github.com/laramiel/bazel-golang-vendor-test
$ bazel test ...
However this fails as above.