Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/toolchains.rst: Remove reference to deprecated go_rule #3486

Merged
merged 2 commits into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions go/toolchains.rst
Original file line number Diff line number Diff line change
Expand Up @@ -505,24 +505,14 @@ 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
def _my_rule_impl(ctx):
go = go_context(ctx)
...
my_rule = go_rule(
_my_rule_impl,
attrs = {
...
},
)
+--------------------------------+-----------------------------+-----------------------------------+
| **Name** | **Type** | **Default value** |
Expand Down