We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 393719b + 16933a6 commit 4273746Copy full SHA for 4273746
private/app_file.bzl
@@ -34,10 +34,12 @@ def _impl(ctx):
34
else:
35
registered_list = ""
36
37
- applications = ["kernel", "stdlib"] + ctx.attr.extra_apps
38
- for dep in ctx.attr.deps:
39
- applications.append(dep[ErlangAppInfo].app_name)
40
- applications_list = "[" + ",".join(applications) + "]"
+ applications_list = ""
+ if src == "" or len(ctx.attr.extra_apps > 0) or len(ctx.attr.deps) > 0:
+ applications = ["kernel", "stdlib"] + ctx.attr.extra_apps
+ for dep in ctx.attr.deps:
41
+ applications.append(dep[ErlangAppInfo].app_name)
42
+ applications_list = "[" + ",".join(applications) + "]"
43
44
stamp = ctx.attr.stamp == 1 or (ctx.attr.stamp == -1 and
45
ctx.attr.private_stamp_detect)
0 commit comments