-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bzlmod] Remove old workspace support (#46)
- Loading branch information
Showing
2 changed files
with
3 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,8 @@ | ||
"""Declare runtime dependencies | ||
""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", _http_archive = "http_archive") | ||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") | ||
|
||
def _http_archive(name, **kwargs): | ||
maybe(_http_archive, name = name, **kwargs) | ||
|
||
def rules_android_lint_dependencies(): | ||
# The minimal version of bazel_skylib we require | ||
_http_archive( | ||
name = "bazel_skylib", | ||
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94", | ||
urls = [ | ||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.6.1/bazel-skylib-1.5.0.tar.gz", | ||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz", | ||
], | ||
) | ||
|
||
# buildifier: disable=unnamed-macro | ||
def android_lint_register_toolchains(register = True): | ||
def android_lint_register_toolchains(): | ||
"""Convenience macro for users which does typical setup. | ||
Args: | ||
register: Whether to register the toolchain. If False, the user must | ||
register it themselves. | ||
""" | ||
if register: | ||
native.register_toolchains("//toolchains:android_lint_default_toolchain") | ||
pass |