spack/lib/spack
Todd Gamblin d763d6f738
gc: restrict to specific specs (#46790)
`spack gc` has so far been a global or environment-specific thing.
This adds the ability to restrict garbage collection to specific specs,
e.g. if you *just* want to get rid of all your unused python installations,
you could write:

```console
spack gc python
```

- [x] add `constraint` arg to `spack gc`
- [x] add a simple test

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2024-10-04 17:43:10 -07:00
..
docs Stand-alone testing: remove deprecated methods (#45752) 2024-10-03 11:36:18 +00:00
env Revert "cc: ensure that RPATHs passed to linker are unique" (#46712) 2024-10-02 11:50:09 +02:00
external Remove spack.target from code (#46503) 2024-09-21 14:05:41 +02:00
llnl stable_partition: use TypeVar (#46686) 2024-10-01 15:58:24 +02:00
spack gc: restrict to specific specs (#46790) 2024-10-04 17:43:10 -07:00
spack_installable Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00