Skip to content

Instantly share code, notes, and snippets.

@mstg
Created February 2, 2020 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstg/051d0bf16941df49312b3a80f868903b to your computer and use it in GitHub Desktop.
Save mstg/051d0bf16941df49312b3a80f868903b to your computer and use it in GitHub Desktop.
diff --git a/aspect/intellij_info_impl.bzl b/aspect/intellij_info_impl.bzl
index 22d7db11..6c449a96 100644
--- a/aspect/intellij_info_impl.bzl
+++ b/aspect/intellij_info_impl.bzl
@@ -349,6 +349,10 @@ def collect_go_info(target, ctx, semantics, ide_info, ide_info_file, output_grou
"go_appengine_test",
]:
sources = [f for src in getattr(ctx.rule.attr, "srcs", []) for f in src.files.to_list()]
+ for em_rule in ctx.rule.attr.embed:
+ g_sources = _collect_generated_go_sources(em_rule)
+ if not g_sources == None:
+ sources += g_sources
generated = [f for f in sources if not f.is_source]
elif ctx.rule.kind == "go_wrap_cc":
genfiles = target.files.to_list()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment