diff options
Diffstat (limited to 'pw_env_setup/bazel/cipd_setup/cipd_rules.bzl')
-rw-r--r-- | pw_env_setup/bazel/cipd_setup/cipd_rules.bzl | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/pw_env_setup/bazel/cipd_setup/cipd_rules.bzl b/pw_env_setup/bazel/cipd_setup/cipd_rules.bzl index c6d462557..6c613a393 100644 --- a/pw_env_setup/bazel/cipd_setup/cipd_rules.bzl +++ b/pw_env_setup/bazel/cipd_setup/cipd_rules.bzl @@ -48,9 +48,20 @@ def cipd_client_repository(): cipd_repository = repository_rule( _cipd_repository_impl, attrs = { - "_cipd_client": attr.label(default = "@cipd_client//:cipd"), - "path": attr.string(), - "tag": attr.string(), + "_cipd_client": attr.label( + default = "@cipd_client//:cipd", + doc = "Location of the CIPD client binary (internal).", + ), + "build_file": attr.label( + allow_single_file = True, + doc = "A BUILD file to use instead of generating one internally.", + ), + "path": attr.string( + doc = "Path within CIPD where this repository lives.", + ), + "tag": attr.string( + doc = "Tag specifying which version of the repository to fetch.", + ), }, doc = """ Downloads a singular CIPD dependency to the root of a remote repository. @@ -80,9 +91,6 @@ _pigweed_deps = repository_rule( "_pigweed_packages_json": attr.label( default = "@pigweed//pw_env_setup:py/pw_env_setup/cipd_setup/pigweed.json", ), - "_python_packages_json": attr.label( - default = "@pigweed//pw_env_setup:py/pw_env_setup/cipd_setup/python.json", - ), "_upstream_testing_packages_json": attr.label( default = "@pigweed//pw_env_setup:py/pw_env_setup/cipd_setup/testing.json", ), |