diff --git a/pkg/BUILD.bazel b/pkg/BUILD.bazel index 7aac01eea2af..f333f8f6a96c 100644 --- a/pkg/BUILD.bazel +++ b/pkg/BUILD.bazel @@ -118,6 +118,7 @@ ALL_TESTS = [ "//pkg/geo/geos:geos_test", "//pkg/geo/geotransform:geotransform_test", "//pkg/geo/twkb:twkb_test", + "//pkg/geo:geo_disallowed_imports_test", "//pkg/geo:geo_test", "//pkg/gossip:gossip_test", "//pkg/internal/client/requestbatcher:requestbatcher_test", diff --git a/pkg/geo/BUILD.bazel b/pkg/geo/BUILD.bazel index ff48d6f7f9d0..010d0b21834f 100644 --- a/pkg/geo/BUILD.bazel +++ b/pkg/geo/BUILD.bazel @@ -1,4 +1,5 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("//pkg/testutils/buildutil:buildutil.bzl", "disallowed_imports_test") go_library( name = "geo", @@ -63,3 +64,11 @@ go_test( "@com_github_twpayne_go_geom//:go-geom", ], ) + +disallowed_imports_test( + "geo", + [ + "//pkg/geo/geographiclib", + "//pkg/geo/geoproj", + ], +)