summaryrefslogtreecommitdiff
path: root/LICENSE-MIT
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2021-12-23 13:45:06 -0800
committerGreg Becker <becker33@llnl.gov>2022-01-12 06:14:18 -0800
commita18a0e7a47ca20c9745e2dfc12f7dbc1f47253b1 (patch)
treebc92d5c0ad393673b964044bd6032b0bba335a4c /LICENSE-MIT
parent106ae7abe64f021bd151db65f76093c1f9298a78 (diff)
downloadspack-a18a0e7a47ca20c9745e2dfc12f7dbc1f47253b1.tar.gz
spack-a18a0e7a47ca20c9745e2dfc12f7dbc1f47253b1.tar.bz2
spack-a18a0e7a47ca20c9745e2dfc12f7dbc1f47253b1.tar.xz
spack-a18a0e7a47ca20c9745e2dfc12f7dbc1f47253b1.zip
commands: add `spack pkg source` and `spack pkg hash`
To make it easier to see how package hashes change and how they are computed, add two commands: * `spack pkg source <spec>`: dumps source code for a package to the terminal * `spack pkg source --canonical <spec>`: dumps canonicalized source code for a package to the terminal. It strips comments, directives, and known-unused multimethods from the package. It is used to generate package hashes. * `spack pkg hash <spec>`: This gives the package hash for a particular spec. It is generated from the canonical source code for the spec. - [x] `add spack pkg source` and `spack pkg hash` - [x] add tests - [x] fix bug in multimethod resolution with boolean `@when` values Co-authored-by: Greg Becker <becker33@llnl.gov>
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions