diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2018-09-24 15:48:24 -0400 |
---|---|---|
committer | Laurent Le Brun <laurentlb@gmail.com> | 2018-09-24 21:48:24 +0200 |
commit | 1099dd2d0a80649700e3dff0cfc759cfe0f86c6e (patch) | |
tree | a0081b84c0d01d5434b5118b3010dd22b2d9d9e3 /lib.bzl | |
parent | e9fc4750d427196754bebb0e2e1e38d68893490a (diff) | |
download | bazel-skylib-1099dd2d0a80649700e3dff0cfc759cfe0f86c6e.tar.gz |
deprecate lib.bzl. (#58)
- tag the :lib target as such.
- print() a warning when lib.bzl is loaded.
Diffstat (limited to 'lib.bzl')
-rw-r--r-- | lib.bzl | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -14,6 +14,12 @@ """Index from which multiple modules can be loaded.""" +print( + "WARNING: lib.bzl is deprecated and will go away in the future, please" + + " directly load the bzl file(s) of the module(s) needed as it is more" + + " efficient.", +) + load("//lib:collections.bzl", _collections = "collections") load("//lib:dicts.bzl", _dicts = "dicts") load("//lib:new_sets.bzl", _new_sets = "sets") @@ -25,9 +31,6 @@ load("//lib:shell.bzl", _shell = "shell") load("//lib:structs.bzl", _structs = "structs") load("//lib:types.bzl", _types = "types") load("//lib:versions.bzl", _versions = "versions") - -# The unittest module is treated differently to give more convenient names to -# the assert functions, while keeping them in the same .bzl file. load("//lib:unittest.bzl", _asserts = "asserts", _unittest = "unittest") collections = _collections |