From ef23ba57f2565fa6f049aa26ebd695c0fdfdcc60 Mon Sep 17 00:00:00 2001 From: laurentlb Date: Thu, 30 Nov 2017 06:05:29 -0800 Subject: Mark relative_to_caller_repository as deprecated in Label constructor. RELNOTES: in the Label() function, relative_to_caller_repository is now deprecated. PiperOrigin-RevId: 177443907 --- .../build/lib/analysis/skylark/SkylarkRuleClassFunctions.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/analysis/skylark') diff --git a/src/main/java/com/google/devtools/build/lib/analysis/skylark/SkylarkRuleClassFunctions.java b/src/main/java/com/google/devtools/build/lib/analysis/skylark/SkylarkRuleClassFunctions.java index 03d209e8dc..a697721ea9 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/skylark/SkylarkRuleClassFunctions.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/skylark/SkylarkRuleClassFunctions.java @@ -948,8 +948,13 @@ public class SkylarkRuleClassFunctions { named = true, positional = false, doc = - "whether the label should be resolved relative to the label of the file this " - + "function is called from." + "Deprecated. Do not use. " + + "When relative_to_caller_repository is True and the calling thread is a rule's " + + "implementation function, then a repo-relative label //foo:bar is resolved " + + "relative to the rule's repository. For calls to Label from any other " + + "thread, or calls in which the relative_to_caller_repository flag is False, " + + "a repo-relative label is resolved relative to the file in which the " + + "Label() call appears." ) }, useLocation = true, -- cgit v1.2.3