From 6e8e7ecdd95276e7efc5eafdd1f14df136de07cc Mon Sep 17 00:00:00 2001 From: Evan Jones Date: Fri, 7 Apr 2023 12:19:19 -0400 Subject: [PATCH] go/toolchains.rst: Remove reference to deprecated go_rule (#3486) The definition of the go_rule function in now prints the following message: The go_rule function has been removed. Use rule directly instead. Remove reference to go_rule from the go_context documentation. Co-authored-by: Zhongpeng Lin --- go/toolchains.rst | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/go/toolchains.rst b/go/toolchains.rst index 3ac06b3ce7..57182aab5c 100644 --- a/go/toolchains.rst +++ b/go/toolchains.rst @@ -505,10 +505,7 @@ go_context ~~~~~~~~~~ This collects the information needed to form and return a :type:`GoContext` from -a rule ctx. It uses the attributes and the toolchains. It can only be used in -the implementation of a rule that has the go toolchain attached and the go -context data as an attribute. To do this declare the rule using the go_rule -wrapper. +a rule ctx. It uses the attributes and the toolchains. .. code:: bzl @@ -516,13 +513,6 @@ wrapper. go = go_context(ctx) ... - my_rule = go_rule( - _my_rule_impl, - attrs = { - ... - }, - ) - +--------------------------------+-----------------------------+-----------------------------------+ | **Name** | **Type** | **Default value** |