From be54f6d085ccb242572c5f2053ee53d3f6f40af6 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Wed, 14 Sep 2022 11:24:49 -0700 Subject: [PATCH] rename to nanoflann_internal --- perception/BUILD.bazel | 2 +- tools/workspace/default.bzl | 6 +++--- .../workspace/{nanoflann => nanoflann_internal}/BUILD.bazel | 0 .../{nanoflann => nanoflann_internal}/package.BUILD.bazel | 0 .../{nanoflann => nanoflann_internal}/repository.bzl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename tools/workspace/{nanoflann => nanoflann_internal}/BUILD.bazel (100%) rename tools/workspace/{nanoflann => nanoflann_internal}/package.BUILD.bazel (100%) rename tools/workspace/{nanoflann => nanoflann_internal}/repository.bzl (91%) diff --git a/perception/BUILD.bazel b/perception/BUILD.bazel index 0614efd7dcf0..f99ca6053197 100644 --- a/perception/BUILD.bazel +++ b/perception/BUILD.bazel @@ -42,7 +42,7 @@ drake_cc_library( deps = [ "//common:unused", "@abseil_cpp_internal//absl/container:flat_hash_map", - "@nanoflann", + "@nanoflann_internal//:nanoflann", ], ) diff --git a/tools/workspace/default.bzl b/tools/workspace/default.bzl index 8a3fab06f7b1..98bb3027336f 100644 --- a/tools/workspace/default.bzl +++ b/tools/workspace/default.bzl @@ -63,7 +63,7 @@ load("@drake//tools/workspace/msgpack:repository.bzl", "msgpack_repository") load("@drake//tools/workspace/msgpack_lite_js:repository.bzl", "msgpack_lite_js_repository") # noqa load("@drake//tools/workspace/mypy_extensions_internal:repository.bzl", "mypy_extensions_internal_repository") # noqa load("@drake//tools/workspace/mypy_internal:repository.bzl", "mypy_internal_repository") # noqa -load("@drake//tools/workspace/nanoflann:repository.bzl", "nanoflann_repository") # noqa +load("@drake//tools/workspace/nanoflann_internal:repository.bzl", "nanoflann_internal_repository") # noqa load("@drake//tools/workspace/net_sf_jchart2d:repository.bzl", "net_sf_jchart2d_repository") # noqa load("@drake//tools/workspace/nlopt:repository.bzl", "nlopt_repository") load("@drake//tools/workspace/nlopt_internal:repository.bzl", "nlopt_internal_repository") # noqa @@ -278,8 +278,8 @@ def add_default_repositories(excludes = [], mirrors = DEFAULT_MIRRORS): mypy_extensions_internal_repository(name = "mypy_extensions_internal", mirrors = mirrors) # noqa if "mypy_internal" not in excludes: mypy_internal_repository(name = "mypy_internal", mirrors = mirrors) - if "nanoflann" not in excludes: - nanoflann_repository(name = "nanoflann", mirrors = mirrors) + if "nanoflann_internal" not in excludes: + nanoflann_internal_repository(name = "nanoflann_internal", mirrors = mirrors) # noqa if "net_sf_jchart2d" not in excludes: net_sf_jchart2d_repository(name = "net_sf_jchart2d", mirrors = mirrors) if "nlopt" not in excludes: diff --git a/tools/workspace/nanoflann/BUILD.bazel b/tools/workspace/nanoflann_internal/BUILD.bazel similarity index 100% rename from tools/workspace/nanoflann/BUILD.bazel rename to tools/workspace/nanoflann_internal/BUILD.bazel diff --git a/tools/workspace/nanoflann/package.BUILD.bazel b/tools/workspace/nanoflann_internal/package.BUILD.bazel similarity index 100% rename from tools/workspace/nanoflann/package.BUILD.bazel rename to tools/workspace/nanoflann_internal/package.BUILD.bazel diff --git a/tools/workspace/nanoflann/repository.bzl b/tools/workspace/nanoflann_internal/repository.bzl similarity index 91% rename from tools/workspace/nanoflann/repository.bzl rename to tools/workspace/nanoflann_internal/repository.bzl index 96f3ada3ea11..2bf8e9467cd4 100644 --- a/tools/workspace/nanoflann/repository.bzl +++ b/tools/workspace/nanoflann_internal/repository.bzl @@ -2,7 +2,7 @@ load("@drake//tools/workspace:github.bzl", "github_archive") -def nanoflann_repository( +def nanoflann_internal_repository( name, mirrors = None): github_archive(