Open IgorTodorovskiIBM opened 8 months ago
In a similar vein, removing meta itself might be interesting! There should be the bootstrap versions still available so we could fallback to those but perhaps a flag in the metadata marking something as non-removable would be simpler
This seems an important one since someone could brick their zopen by removing curl, meta, jq. Can we go with a simple starter where we record the tools that are pre-packaged and just prevent them from being removed? People should still be able to clean extra ones. @DevonianTeuchter @IgorTodorovskiIBM thoughts?
We could add a ".donotdelete" hidden file to the pre-reqs and check for its existence prior to deleting
The hidden file approach or metadata tag to mark as non-deletable is fairly easy to implement. However, what happens if we update the base release (for a CVE for example)? The "do-not-remove" tagged version would need to be removed and replaced (or at least now be cleanable since the new version would be the DNR). When we update, we need a mechanism to remove the tag from the previous DNR version - otherwise we start to leak old versions...
Or provide a backup location in case they are removed: