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:
@@ -0,0 +1,24 @@
|
||||
load("@bazel_tools//tools/build_rules/go:def.bzl", "go_prefix", "go_binary")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
# BAZEL does not work correctly with BUILD files rooted elsewhere than
|
||||
# the actual code directory.
|
||||
#
|
||||
#go_binary(
|
||||
# name ="bare",
|
||||
# srcs = [ "bare.go" ],
|
||||
# deps = [
|
||||
# "//vendor/github.com/laramiel:bare",
|
||||
# ],
|
||||
#)
|
||||
|
||||
go_binary(
|
||||
name ="remote",
|
||||
srcs = [ "remote.go" ],
|
||||
deps = [
|
||||
"//vendor/github.com/laramiel/bazel-example-golang-remote:remote",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user