diff --git a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkNativeModuleApi.java b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkNativeModuleApi.java index 8ed05f17d2755a..db808baf0919bb 100644 --- a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkNativeModuleApi.java +++ b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkNativeModuleApi.java @@ -124,10 +124,14 @@ Sequence> glob( + " whose default value is computed are excluded from the result. (Computed defaults" + " cannot be computed until the analysis phase.)." // + "" // - + "
If possible, avoid using this function. It makes BUILD files brittle and"
- + " order-dependent. Also, beware that it differs subtly from the two"
- + " other conversions of rule attribute values from internal form to Starlark: one"
- + " used by computed defaults, the other used by ctx.attr.foo
.",
+ + "
If possible, use this function only in implementation functions"
+ + " of rule finalizer symbolic macros. Use of this function in other contexts is"
+ + " not recommened, and will be disabled in a future Bazel release; it makes"
+ + " BUILD
files brittle and order-dependent. Also, beware that it"
+ + " differs subtly from the two other conversions of rule attribute values from"
+ + " internal form to Starlark: one used by computed defaults, the other used by"
+ + " ctx.attr.foo
.",
parameters = {@Param(name = "name", doc = "The name of the target.")},
useStarlarkThread = true)
Object existingRule(String name, StarlarkThread thread) throws EvalException;
@@ -143,8 +147,11 @@ Sequence> glob(
+ " x
supporting dict-like iteration, len(x)
, name in"
+ " x
, x[name]
, x.get(name)
, x.items()
,"
+ " x.keys()
, and x.values()
." //
- + "
Note: If possible, avoid using this function. It makes BUILD files brittle"
- + " and order-dependent.",
+ + " If possible, use this function only in implementation functions"
+ + " of rule finalizer symbolic macros. Use of this function in other contexts is"
+ + " not recommened, and will be disabled in a future Bazel release; it makes"
+ + " BUILD
files brittle and order-dependent.",
useStarlarkThread = true)
Object existingRules(StarlarkThread thread) throws EvalException;