Skip to content

Commit

Permalink
fix: logic error in expand_variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Feb 11, 2020
1 parent 3af3a0d commit d7058dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/common/expand_variables.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def expand_variables(ctx, s, outs = [], output_dir = False):
fail("""$@ substitution may only be used with a single out
Upgrading rules_nodejs? Maybe you need to switch from $@ to $(RULEDIR)
See https://github.com/bazelbuild/rules_nodejs/releases/tag/0.42.0""")
additional_substitutions["@"] = ctx.outputs.outs[0].path
if len(ctx.outputs.outs) == 1:
additional_substitutions["@"] = ctx.outputs.outs[0].path
output_dir = ctx.outputs.outs[0].dirname.split("/")
else:
output_dir = rule_dir[:]
Expand Down

0 comments on commit d7058dd

Please sign in to comment.