diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-01-07 17:16:54 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-07 08:16:54 -0800 |
commit | 08d0267c9a6877b65208d732f0d5319b0fcc0bd7 (patch) | |
tree | b46e1766d140e8a79681f8d38d0314f9cb28cd24 /bin | |
parent | eddb42ed438ee870e224d4e9629c020d003b7d06 (diff) | |
download | spack-08d0267c9a6877b65208d732f0d5319b0fcc0bd7.tar.gz spack-08d0267c9a6877b65208d732f0d5319b0fcc0bd7.tar.bz2 spack-08d0267c9a6877b65208d732f0d5319b0fcc0bd7.tar.xz spack-08d0267c9a6877b65208d732f0d5319b0fcc0bd7.zip |
Spack can automatically remove unused specs (#13534)
* Spack can uninstall unused specs
fixes #4382
Added an option to spack uninstall that removes all unused specs i.e.
build dependencies or transitive dependencies that are left
in the store after the specs that pulled them in have been removed.
* Moved the functionality to its own command
The command has been named 'spack autoremove' to follow the naming used
for the same functionality by other widely known package managers i.e.
yum and apt.
* Speed-up autoremoving specs by not locking and re-reading the scratch DB
* Make autoremove work directly on Spack's store
* Added unit tests for the new command
* Display a terser output to the user
* Renamed the "autoremove" command "gc"
Following discussion there's more consensus around
the latter name.
* Preserve root specs in env contexts
* Instead of preserving specs, restrict gc to the active environment
* Added docs
* Added a unit test for gc within an environment
* Updated copyright to 2020
* Updated documentation according to review
Rephrased a couple of sentences, added references to
`spack find` and dependency types.
* Updated function naming and docstrings
* Simplified computation of unused specs
Since the new approach uses private attributes of the DB
it has been coded as a method of that class rather than a
freestanding function.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions