diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2023-12-26 14:52:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 14:52:10 -0800 |
commit | 24d12c632c483fb84bac2f6bc64bb62593035e3f (patch) | |
tree | 05119bc1aaffc16a67f97a6f3c4f0fa356ef9a74 /.github/ISSUE_TEMPLATE | |
parent | 441b68aca3f4bd95f87a6781a9f79308e662427e (diff) | |
download | spack-24d12c632c483fb84bac2f6bc64bb62593035e3f.tar.gz spack-24d12c632c483fb84bac2f6bc64bb62593035e3f.tar.bz2 spack-24d12c632c483fb84bac2f6bc64bb62593035e3f.tar.xz spack-24d12c632c483fb84bac2f6bc64bb62593035e3f.zip |
`spack gc`: add options for environments and build dependencies (#41731)
This adds a few options to `spack gc`.
One to give you a little more control over dependencies:
* `-b` / `--keep-build-dependencies`: By default, `spack gc` considers build dependencies to be "no longer needed" once their dependents are installed. With this option, we'll keep build dependencies of needed installations as well.
And two more to make working with environments easier:
* `-E` / `--except-any-environment`: Garbage collect anything NOT needed by an environment. `spack gc -E` and `spack gc -bE` are now easy ways to get rid of everytihng not used by some environment.
* `-e` / `--except-environment` `ENV`: Instead of considering all environments, garbage collect everything not needed by a *specific* environment. Note that you can use this with `-E` to add directory environments to the list of considered envs, e.g.:
spack gc -E -e /path/to/direnv1 -e /path/to/direnv2 #...
- [x] rework `unused_specs()` method on DB to add options for roots and deptypes
- [x] add `all_hashes()` method on DB
- [x] rework `spack gc` command to add 3 more options
- [x] tests
Diffstat (limited to '.github/ISSUE_TEMPLATE')
0 files changed, 0 insertions, 0 deletions