commit | 185565ec7ba04eed025a320047736d91c84916c4 | [log] [tgz] |
---|---|---|
author | Michael Bolin <mbolin@fb.com> | Fri Sep 20 15:51:57 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Wed Sep 25 11:11:51 2013 -0700 |
tree | 5fcd7e537134e4902cd23953d191cad875fc0951 | |
parent | 4d3aa4ea23549c021b8b16e21c494fa5c12f87fb [diff] |
Compute the RuleKey with and without deps simultaneously. Summary: It turns out that a `Hasher` created via `Hashing.sha1()` can have its `hash()` method invoked only once. Therefore, to compute both RuleKeys simultaneously, this diff introduces an AppendingHasher that makes it possible to build up the SHA1 digest for a RuleKey without deps, get its hash, and then update the digest with the deps info, and get its hash again. Test Plan: Created a comprehensive unit test, AppendingHasherTest. The updates to AbstractCachingBuildRuleTest.java reflect the changes to RuleKey.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0