31 lines
789 B
Python
31 lines
789 B
Python
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = ["connect.go"],
|
||
|
importmap = "go-common/vendor/gopkg.in/olivere/elastic.v5/recipes/connect",
|
||
|
importpath = "gopkg.in/olivere/elastic.v5/recipes/connect",
|
||
|
visibility = ["//visibility:private"],
|
||
|
deps = ["//vendor/gopkg.in/olivere/elastic.v5:go_default_library"],
|
||
|
)
|
||
|
|
||
|
go_binary(
|
||
|
name = "connect",
|
||
|
embed = [":go_default_library"],
|
||
|
visibility = ["//visibility:public"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "package-srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "all-srcs",
|
||
|
srcs = [":package-srcs"],
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:public"],
|
||
|
)
|