Skip to content

Commit

Permalink
geo: disallow imports from geoproj / geographiclib
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
otan committed May 3, 2022
1 parent d86d0f7 commit a6f6d38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions pkg/geo/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -63,3 +64,11 @@ go_test(
"@com_github_twpayne_go_geom//:go-geom",
],
)

disallowed_imports_test(
"geo",
[
"//pkg/geo/geographiclib",
"//pkg/geo/geoproj",
],
)

0 comments on commit a6f6d38

Please sign in to comment.