Skip to content

Commit

Permalink
Support go_transition_test kind
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored May 24, 2022
1 parent 4f851e4 commit 87f239f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aspect/intellij_info_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def collect_go_info(target, ctx, semantics, ide_info, ide_info_file, output_grou
"go_binary",
"go_library",
"go_test",
"go_transition_test",
"go_appengine_binary",
"go_appengine_library",
"go_appengine_test",
Expand Down Expand Up @@ -394,7 +395,7 @@ def collect_go_info(target, ctx, semantics, ide_info, ide_info_file, output_grou
import_path = go_semantics.get_import_path(ctx)

library_labels = []
if ctx.rule.kind == "go_test" or ctx.rule.kind == "go_appengine_test":
if ctx.rule.kind == "go_test" or ctx.rule.kind == "go_transition_test" or ctx.rule.kind == "go_appengine_test":
if getattr(ctx.rule.attr, "library", None) != None:
library_labels = [str(ctx.rule.attr.library.label)]
elif getattr(ctx.rule.attr, "embed", None) != None:
Expand Down

0 comments on commit 87f239f

Please sign in to comment.