diff options
author | Son Luong Ngoc <sluongng@gmail.com> | 2022-07-17 17:48:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 08:48:44 -0700 |
commit | ed56d7e5b6a7bf833169372742c1ff72f501846a (patch) | |
tree | 73ca0e07d88f21d2954a9736de7577de2ee52bfb | |
parent | 54c6b9d91130afa684404e8fcab323693096b4dc (diff) | |
download | bazelbuild-rules_go-ed56d7e5b6a7bf833169372742c1ff72f501846a.tar.gz |
new_library: remove unused resolver (#3219)
`_testmain_library_to_source` was introduced in 1c4f6fd1 and last usage
of this resolver was in 56e5592c.
```
> git log -S'_testmain_library_to_source' --oneline
56e5592c Move the test library rule to be go_test internal actions (#1267)
9031d58e Add GoContext (#1140)
1c4f6fd1 Fix aspect based proto builds (#1131)
```
Let's remove the unused resolver and replace the documentation with the
resolver that is actually being used.
-rw-r--r-- | go/private/rules/test.bzl | 3 | ||||
-rw-r--r-- | go/toolchains.rst | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl index fb1d413c..1dfd1555 100644 --- a/go/private/rules/test.bzl +++ b/go/private/rules/test.bzl @@ -54,9 +54,6 @@ load( "structs", ) -def _testmain_library_to_source(go, attr, source, merge): - source["deps"] = source["deps"] + [attr.library] - def _go_test_impl(ctx): """go_test_impl implements go testing. diff --git a/go/toolchains.rst b/go/toolchains.rst index f394ff07..2358249b 100644 --- a/go/toolchains.rst +++ b/go/toolchains.rst @@ -940,7 +940,7 @@ resolver when it is invoked. | | | .. code:: bzl | | | -| def _testmain_library_to_source(go, attr, source, merge) | +| def _stdlib_library_to_source(go, attr, source, merge) | | | | attr is the attributes of the rule being processed | | source is the dictionary of GoSource fields being generated | |