File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,9 @@ def _nogo_impl(ctx):
46
46
if ctx .attr .debug :
47
47
nogo_args .add ("-debug" )
48
48
nogo_inputs = []
49
- for dep in ctx .attr .deps :
50
- nogo_args .add ("-analyzer_importpath" , dep [GoArchive ].data .importpath )
49
+ analyzer_archives = [dep [GoArchive ] for dep in ctx .attr .deps ]
50
+ analyzer_importpaths = [archive .data .importpath for archive in analyzer_archives ]
51
+ nogo_args .add_all (analyzer_importpaths , before_each = "-analyzer_importpath" )
51
52
if ctx .file .config :
52
53
nogo_args .add ("-config" , ctx .file .config )
53
54
nogo_inputs .append (ctx .file .config )
@@ -74,7 +75,7 @@ def _nogo_impl(ctx):
74
75
nogo_source = go .library_to_source (go , struct (
75
76
srcs = [struct (files = [nogo_main ])],
76
77
embed = [ctx .attr ._nogo_srcs ],
77
- deps = ctx . attr . deps ,
78
+ deps = analyzer_archives ,
78
79
), nogo_library , False )
79
80
_ , executable , runfiles = go .binary (
80
81
go ,
You can’t perform that action at this time.
0 commit comments