mottosso / bleeding-rez

Rez - Reproducible software environments for Windows, Linux and MacOS
GNU Lesser General Public License v3.0
71 stars 10 forks source link

rez rm #51

Open mottosso opened 5 years ago

mottosso commented 5 years ago

Goal

Facilitate small companies and beginners of Rez during the initial learning stage and small-scale package management.

Motivation

As you learn about Rez, you'll want to create a lot of packages, a lot of which were for practice. Removing packages currently involves manually deleting a directory on disk, and doesn't account for deleting packages other than from file-system repositories. It also prevents tracking of deleted packages (for e.g. archival), if deleting happens outside of Rez.

Implementation

Like rez cp, add a rez rm command that does as advertised.

$ cd mypackage
$ rez build --install
$ rez rm mypackage

Conditions

mottosso commented 5 years ago

This should also help tackle the issue of memcache holding onto packages post-deletion, as would typically be the case by manually deleting from outside of Rez. As memcached would have no reason to think a package has been deleted, without actually going out and querying the disk; defeating the purpose of caching in the first place.

mottosso commented 5 years ago

It should also manage cleanup after removing a variant.

E.g.

~\packages\PySide\1.2.4\platform-windows\os-windows-10\python-2.7

Otherwise, we'd end up with gaps all over the place.