diff --git a/tests/legacy/trans_dep_error/BUILD.bazel b/tests/legacy/trans_dep_error/BUILD.bazel deleted file mode 100644 index 2e3cff0b59..0000000000 --- a/tests/legacy/trans_dep_error/BUILD.bazel +++ /dev/null @@ -1,37 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//tests:bazel_tests.bzl", "bazel_test") - -bazel_test( - name = "trans_dep_error", - check = """ -if [ "$result" -eq 0 ]; then - echo "error: build succeeded unexpectedly" >&2 - result=1 -else - result=0 -fi -""", - command = "build", - targets = [":go_default_library"], -) - -go_library( - name = "go_default_library", - srcs = ["lib.go"], - importpath = "github.com/bazelbuild/rules_go/tests/trans_dep_error", - tags = ["manual"], - deps = [":a"], -) - -go_library( - name = "a", - srcs = ["a.go"], - importpath = "github.com/bazelbuild/rules_go/tests/trans_dep_error/a", - deps = [":b"], -) - -go_library( - name = "b", - srcs = ["b.go"], - importpath = "github.com/bazelbuild/rules_go/tests/trans_dep_error/b", -) diff --git a/tests/legacy/trans_dep_error/a.go b/tests/legacy/trans_dep_error/a.go deleted file mode 100644 index cf349896af..0000000000 --- a/tests/legacy/trans_dep_error/a.go +++ /dev/null @@ -1,3 +0,0 @@ -package a - -import _ "github.com/bazelbuild/rules_go/tests/trans_dep_error/b" diff --git a/tests/legacy/trans_dep_error/b.go b/tests/legacy/trans_dep_error/b.go deleted file mode 100644 index e0836a8839..0000000000 --- a/tests/legacy/trans_dep_error/b.go +++ /dev/null @@ -1 +0,0 @@ -package b diff --git a/tests/legacy/trans_dep_error/lib.go b/tests/legacy/trans_dep_error/lib.go deleted file mode 100644 index 432f427975..0000000000 --- a/tests/legacy/trans_dep_error/lib.go +++ /dev/null @@ -1,4 +0,0 @@ -package trans_dep_error - -import _ "github.com/bazelbuild/rules_go/tests/trans_dep_error/a" -import _ "github.com/bazelbuild/rules_go/tests/trans_dep_error/b"