34 lines
886 B
Python
34 lines
886 B
Python
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = ["bulk_insert.go"],
|
||
|
importmap = "go-common/vendor/gopkg.in/olivere/elastic.v5/recipes/bulk_insert",
|
||
|
importpath = "gopkg.in/olivere/elastic.v5/recipes/bulk_insert",
|
||
|
visibility = ["//visibility:private"],
|
||
|
deps = [
|
||
|
"//vendor/golang.org/x/sync/errgroup:go_default_library",
|
||
|
"//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_binary(
|
||
|
name = "bulk_insert",
|
||
|
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"],
|
||
|
)
|