Skip to content

Commit 0d8e871

Browse files
authored
Tweak nogo archive handling (#4023)
This is one of the sources of feeding structs into `deps`. **What type of PR is this?** Starlark cleanup **What does this PR do? Why is it needed?** **Which issues(s) does this PR fix?** Fixes # **Other notes for review**
1 parent 1bc00b0 commit 0d8e871

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

go/private/rules/nogo.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ load(
2525
"EXPORT_PATH",
2626
"GoArchive",
2727
"GoLibrary",
28-
"get_archive",
2928
)
3029
load(
3130
"//go/private/rules:transition.bzl",
@@ -47,7 +46,7 @@ def _nogo_impl(ctx):
4746
if ctx.attr.debug:
4847
nogo_args.add("-debug")
4948
nogo_inputs = []
50-
analyzer_archives = [get_archive(dep) for dep in ctx.attr.deps]
49+
analyzer_archives = [dep[GoArchive] for dep in ctx.attr.deps]
5150
analyzer_importpaths = [archive.data.importpath for archive in analyzer_archives]
5251
nogo_args.add_all(analyzer_importpaths, before_each = "-analyzer_importpath")
5352
if ctx.file.config:

0 commit comments

Comments
 (0)