Skip to content

Commit

Permalink
[workspace] Deprecate the rules_pkg external (#19872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Jul 31, 2023
1 parent 449788c commit ab489de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/workspace/default.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def add_default_repositories(excludes = [], mirrors = DEFAULT_MIRRORS):
if "ros_xacro_internal" not in excludes:
ros_xacro_internal_repository(name = "ros_xacro_internal", mirrors = mirrors) # noqa
if "rules_pkg" not in excludes:
# The @rules_pkg external is deprecated in Drake's WORKSPACE and will
# be removed on or after 2023-11-01.
rules_pkg_repository(name = "rules_pkg", mirrors = mirrors)
if "rules_python" not in excludes:
rules_python_repository(name = "rules_python", mirrors = mirrors)
Expand Down
1 change: 0 additions & 1 deletion tools/workspace/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def read_repository_metadata(repositories=None):

# These are starlark deps, so don't show up in the query.
repositories.add("bazel_skylib")
repositories.add("rules_pkg")

# Make sure all of the repository_rule results are up-to-date.
subprocess.check_call(["bazel", "fetch", "//..."])
Expand Down
3 changes: 3 additions & 0 deletions tools/workspace/rules_pkg/repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ load("@drake//tools/workspace:github.bzl", "github_archive")
def rules_pkg_repository(
name,
mirrors = None):
"""The @rules_pkg external is deprecated in Drake's WORKSPACE and will be
removed on or after 2023-11-01.
"""
github_archive(
name = name,
repository = "bazelbuild/rules_pkg", # License: Apache-2.0
Expand Down

0 comments on commit ab489de

Please sign in to comment.