Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preprocessor: do not include snippets in hash key calc
The contents of the snippets function cannot influence the result of the preprocessor on input files. Hence we must exclude the snippets package from the sum that calculates a hash key of the preprocessor itself. The dependency on snippets comes about because of the --serve mode, whereby the preprocessor also acts as the webserver hosting the snippets function. Arguably we shouldn't do that because it conflates the real role of the preprocessor. That's probably fair, but not a change to make right now. There isn't therefore a particularly clean way of carving out the snippets dependency so as not to form part of the hash. We could use build tags to represent the different aspects of the preprocessor, but again that's more work than we care to spend on this right now. So simply hardcode the exclusion for now and add a TODO that this should probably be revisited in a more meaningful way. Preprocessor-No-Write-Cache: true Signed-off-by: Paul Jolly <[email protected]> Change-Id: Ia18d4d3ae8378a6c268f1ab364cc941fd3a1f0bb Dispatch-Trailer: {"type":"trybot","CL":1171202,"patchset":2,"ref":"refs/changes/02/1171202/2","targetBranch":"alpha"}
- Loading branch information