1*60517a1eSAndroid Build Coastguard Workerload("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2*60517a1eSAndroid Build Coastguard Worker 3*60517a1eSAndroid Build Coastguard Workerexports_files([ 4*60517a1eSAndroid Build Coastguard Worker # This gets wrapped up into a py_binary with args inside of the gazelle_python_manifest macro. 5*60517a1eSAndroid Build Coastguard Worker "copy_to_source.py", 6*60517a1eSAndroid Build Coastguard Worker]) 7*60517a1eSAndroid Build Coastguard Worker 8*60517a1eSAndroid Build Coastguard Workergo_library( 9*60517a1eSAndroid Build Coastguard Worker name = "manifest", 10*60517a1eSAndroid Build Coastguard Worker srcs = ["manifest.go"], 11*60517a1eSAndroid Build Coastguard Worker importpath = "github.com/bazelbuild/rules_python/gazelle/manifest", 12*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 13*60517a1eSAndroid Build Coastguard Worker deps = [ 14*60517a1eSAndroid Build Coastguard Worker "@com_github_emirpasic_gods//sets/treeset", 15*60517a1eSAndroid Build Coastguard Worker "@in_gopkg_yaml_v2//:yaml_v2", 16*60517a1eSAndroid Build Coastguard Worker ], 17*60517a1eSAndroid Build Coastguard Worker) 18*60517a1eSAndroid Build Coastguard Worker 19*60517a1eSAndroid Build Coastguard Workergo_test( 20*60517a1eSAndroid Build Coastguard Worker name = "manifest_test", 21*60517a1eSAndroid Build Coastguard Worker srcs = ["manifest_test.go"], 22*60517a1eSAndroid Build Coastguard Worker data = glob(["testdata/**"]), 23*60517a1eSAndroid Build Coastguard Worker deps = [":manifest"], 24*60517a1eSAndroid Build Coastguard Worker) 25*60517a1eSAndroid Build Coastguard Worker 26*60517a1eSAndroid Build Coastguard Workerfilegroup( 27*60517a1eSAndroid Build Coastguard Worker name = "distribution", 28*60517a1eSAndroid Build Coastguard Worker srcs = glob(["**"]) + [ 29*60517a1eSAndroid Build Coastguard Worker "//manifest/generate:distribution", 30*60517a1eSAndroid Build Coastguard Worker "//manifest/hasher:distribution", 31*60517a1eSAndroid Build Coastguard Worker "//manifest/test:distribution", 32*60517a1eSAndroid Build Coastguard Worker ], 33*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__pkg__"], 34*60517a1eSAndroid Build Coastguard Worker) 35