aptly
aptly copied to clipboard
Allow to remove a component from a published repository
Detailed Description
Besides the capability to add a component to a published repository, it would be useful if one or multiple components could be removed from a published repository, too.
Context
Currently, it is only possible to drop the published repository as a whole and recreate it without the components you want to be absent. This causes unnecessary overhead. The main problem is that the methods, which are available for a published repository, cannot be extended without changing the method's semantics: update
and switch
are only applicable on local repositories or snapshots. drop
is a destructive method and removes the whole published repository.
Possible Implementation
It would be best to introduce a new method and extend the publish CLI. Analogous to the remove
method of a local repository, which removes packages, we can implement a remove
method for a published repository, which removes components. In both cases the remove
method removes packages from the corresponding target.