diff options
author | laurentlb <laurentlb@google.com> | 2017-11-30 06:05:29 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-30 06:07:27 -0800 |
commit | ef23ba57f2565fa6f049aa26ebd695c0fdfdcc60 (patch) | |
tree | 817c731e8251b416893ecbcbb636a908a96e0761 /src/main/java/com/google/devtools/build/lib/analysis/skylark | |
parent | 3549d761b3ed2120510b316a98fb0a9779feed12 (diff) |
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
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/skylark')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/skylark/SkylarkRuleClassFunctions.java | 9 |
1 files changed, 7 insertions, 2 deletions
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, |