1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3go_test( 4 name = "go_default_test", 5 size = "small", 6 srcs = ["transitive_data_test.go"], 7 args = [ 8 "go_data.txt", 9 "cgo_data.txt", 10 "c_data.txt", 11 ], 12 deps = [":go_lib"], 13) 14 15go_library( 16 name = "go_lib", 17 srcs = [ 18 "empty.go", 19 "empty_cgo.go", 20 ], 21 cdeps = [":c_lib"], 22 cgo = True, 23 data = [ 24 "cgo_data.txt", 25 "go_data.txt", 26 ], 27 importpath = "github.com/bazelbuild/rules_go/tests/transitive_data", 28) 29 30cc_library( 31 name = "c_lib", 32 srcs = [], 33 data = ["c_data.txt"], 34) 35