Add the vendor/ path, and add git submodules to the appropriate
subdirectory paths under vendor/ The intent is to make use of the golang 1.6 VENDOR extension to build. As seen, the bare example does not correctly build using bazel in this mode.
This commit is contained in:
@ -18,6 +18,10 @@ $ bazel run :bare
|
||||
$ git submodule update --init --recursive
|
||||
$ bazel run //submodule:bare
|
||||
$ bazel run //submodule:remote
|
||||
|
||||
$ bazel run //with_vendor:remote
|
||||
$ bazel run //with_vendor:bare
|
||||
|
||||
```
|
||||
|
||||
# Explanation
|
||||
@ -45,3 +49,5 @@ ways:
|
||||
using those paths. This accounts for the `//submodule:bare`
|
||||
and `//submodule:remote` targets.
|
||||
|
||||
3. Using the VENDOR extension introduced in go1.6.
|
||||
|
||||
|
Reference in New Issue
Block a user