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