Skip to content

Commit

Permalink
RELNOTES[INC]: genquery target locations are now relative to the work…
Browse files Browse the repository at this point in the history
…space root when used with protobuf or XML outputs.

genquery was non-deterministic accross machines / workspace location without that setting.

--
MOS_MIGRATED_REVID=88711033
  • Loading branch information
damienmg authored and hanwen committed Mar 16, 2015
1 parent 94cca59 commit 957934c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedExcept
return null;
}

// force relative_locations to true so it has a deterministic output across machines.
queryOptions.relativeLocations = true;

final byte[] result = executeQuery(ruleContext, queryOptions, getScope(ruleContext), query);
if (result == null || ruleContext.hasErrors()) {
return null;
Expand Down

0 comments on commit 957934c

Please sign in to comment.