summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2019-07-12 19:06:17 -0700
committerGreg Becker <becker33@llnl.gov>2019-07-22 13:45:34 -0500
commit7ec1d320a82f28e465557046e4b75385bebda77e (patch)
tree31ba52e70f690bbe6e796ec63899807daeca6bed /etc
parent0715b512a19d5d966f596559274ca7b8a3406701 (diff)
downloadspack-7ec1d320a82f28e465557046e4b75385bebda77e.tar.gz
spack-7ec1d320a82f28e465557046e4b75385bebda77e.tar.bz2
spack-7ec1d320a82f28e465557046e4b75385bebda77e.tar.xz
spack-7ec1d320a82f28e465557046e4b75385bebda77e.zip
hashes: consolidate and make hashing logic more consistent
Spack has evolved to have three types of hash functions, and it's becoming hard to tell when each one is called. Whlie we aren't yet ready to get rid of them, we can refactor them so that the code is clearer and easier to track. - Add a `hash_types` module with concise descriptors for hashes. - Consolidate hashing logic in a private `Spec._spec_hash()` function. - `dag_hash()`, `build_hash()`, and `full_hash()` all call `_spec_hash()` - `to_node_dict()`, `to_dict()`, `to_yaml()` and `to_json()` now take a `hash` parameter consistent with the one that `_spec_hash()` requires. Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions