Skip to content

Commit

Permalink
Always set Runfiles suffix in runfiles Skylark function
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=93893620
  • Loading branch information
zombiezen authored and damienmg committed May 18, 2015
1 parent 482f22d commit 3e66823
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ public Runfiles invoke(SkylarkRuleContext ctx, SkylarkList files, Object transit
Boolean collectData, Boolean collectDefault,
Location loc) throws EvalException, ConversionException {
Runfiles.Builder builder = new Runfiles.Builder();
builder.setSuffix(ctx.getWorkspaceName());
if (EvalUtils.toBoolean(collectData)) {
builder.addRunfiles(ctx.getRuleContext(), RunfilesProvider.DATA_RUNFILES);
}
Expand Down

0 comments on commit 3e66823

Please sign in to comment.