diff options
Diffstat (limited to 'tests/legacy/slash_names/BUILD.bazel')
-rw-r--r-- | tests/legacy/slash_names/BUILD.bazel | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/legacy/slash_names/BUILD.bazel b/tests/legacy/slash_names/BUILD.bazel new file mode 100644 index 00000000..ce7d8fd9 --- /dev/null +++ b/tests/legacy/slash_names/BUILD.bazel @@ -0,0 +1,27 @@ +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 a +# gazelle:exclude b + +go_library( + name = "a/pkg", + srcs = ["a/pkg/pkg.go"], + importpath = "github.com/bazelbuild/rules_go/tests/slash_names/a/pkg", +) + +go_library( + name = "b/pkg", + srcs = ["b/pkg/pkg.go"], + importpath = "github.com/bazelbuild/rules_go/tests/slash_names/b/pkg", +) + +go_test( + name = "go_default_test", + size = "small", + srcs = ["slash_test.go"], + deps = [ + ":a/pkg", + ":b/pkg", + ], +) |