diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2021-12-23 00:53:44 -0800 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2022-01-12 06:14:18 -0800 |
commit | 800229a448029b80dd28b58f3e9be2fec7ebd0c4 (patch) | |
tree | ebf3767bb3d5e98684a031aeae5898af1a90ab5b /var | |
parent | 93a6c51d8819a2f0003ed4f788f621717cbece81 (diff) | |
download | spack-800229a448029b80dd28b58f3e9be2fec7ebd0c4.tar.gz spack-800229a448029b80dd28b58f3e9be2fec7ebd0c4.tar.bz2 spack-800229a448029b80dd28b58f3e9be2fec7ebd0c4.tar.xz spack-800229a448029b80dd28b58f3e9be2fec7ebd0c4.zip |
package_hash: fix handling of multimethods and add tests
Package hashing was not properly handling multimethods. In particular, it was removing
any functions that had decorators from the output, so we'd miss things like
`@run_after("install")`, etc.
There were also problems with handling multiple `@when`'s in a single file, and with
handling `@when` functions that *had* to be evaluated dynamically.
- [x] Rework static `@when` resolution for package hash
- [x] Ensure that functions with decorators are not removed from output
- [x] Add tests for many different @when scenarios (multiple @when's,
combining with other decorators, default/no default, etc.)
Co-authored-by: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com>
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions