load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | |
# TODO(#746) exclude because gazelle does not recognise the rule below | |
# gazelle:exclude bar | |
# gazelle:exclude foo | |
go_test( | |
name = "go_default_test", | |
size = "small", | |
srcs = ["cgo_multi_dir_test.go"], | |
embed = [":go_default_library"], | |
) | |
go_library( | |
name = "go_default_library", | |
srcs = [ | |
"bar/bar.go", | |
"foo/foo.go", | |
], | |
cgo = True, | |
importpath = "github.com/bazelbuild/rules_go/tests/cgo_multi_dir", | |
) |