35 lines
817 B
Python
35 lines
817 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"balancer.go",
|
|
"client.go",
|
|
"cluster.go",
|
|
"config.go",
|
|
"consumer.go",
|
|
"doc.go",
|
|
"offsets.go",
|
|
"partitions.go",
|
|
"util.go",
|
|
],
|
|
importmap = "go-common/vendor/github.com/bsm/sarama-cluster",
|
|
importpath = "github.com/bsm/sarama-cluster",
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//vendor/github.com/Shopify/sarama:go_default_library"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|