aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Jones <ej@evanjones.ca>2023-04-07 12:19:19 -0400
committerGitHub <noreply@github.com>2023-04-07 16:19:19 +0000
commit6e8e7ecdd95276e7efc5eafdd1f14df136de07cc (patch)
tree4beedc2432f62ec4e57ea27da0e8d7cd8657adf7
parent5037c00c8deafad7b6d78770c4c863b7d3322855 (diff)
downloadbazelbuild-rules_go-6e8e7ecdd95276e7efc5eafdd1f14df136de07cc.tar.gz
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 <zplin@uber.com>
-rw-r--r--go/toolchains.rst12
1 files changed, 1 insertions, 11 deletions
diff --git a/go/toolchains.rst b/go/toolchains.rst
index 3ac06b3c..57182aab 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** |