spack/share/spack
Todd Gamblin a18a0e7a47 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>
2022-01-12 06:14:18 -08:00
..
bash Fix spack install --v[tab] spec (#28278) 2022-01-06 14:47:03 +01:00
bootstrap/github-actions Bootstrap GnuPG (#24003) 2021-11-02 23:15:24 -07:00
csh commands: spack load --list alias for spack find --loaded (#27184) 2021-11-05 00:58:29 -07:00
docker Added opensuse/leap:15 to spack containerize (#27837) 2021-12-23 16:02:09 +01:00
docs/docker/module-file-tutorial copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
gitlab Remove tut since it requires deprecated Python 3.6 (#28360) 2022-01-12 09:34:50 +01:00
keys Update the Public key of the tutorial (#27370) 2021-11-12 11:46:02 +01:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Fix spack install --v[tab] spec (#28278) 2022-01-06 14:47:03 +01:00
templates Use depends_on over load in lmod module files generated by Spack (#28352) 2022-01-12 13:29:22 +00:00
setup-env.csh Introduce a SPACK_PYTHON environment variable (#21222) 2021-02-12 10:52:44 -08:00
setup-env.fish commands: spack load --list alias for spack find --loaded (#27184) 2021-11-05 00:58:29 -07:00
setup-env.sh commands: spack load --list alias for spack find --loaded (#27184) 2021-11-05 00:58:29 -07:00
setup-tutorial-env.sh Tab to spaces (#22362) 2021-03-18 06:20:06 +00:00
spack-completion.bash commands: add spack pkg source and spack pkg hash 2022-01-12 06:14:18 -08:00