From f6189249c5fe4e34507a1ba764031b4d57a3363c Mon Sep 17 00:00:00 2001 From: Evan Jones Date: Tue, 21 Mar 2023 11:34:49 -0400 Subject: [PATCH] go/toolchains.rst: Remove reference to deprecated go_rule 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. --- 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** |