ongardie / cubicle

Manage isolated development environments
MIT License
15 stars 3 forks source link

keeping files outside the work directory across `cub reset` #29

Open ongardie opened 2 years ago

ongardie commented 2 years ago

Right now the work directory survives a cub reset and nothing else does. It's easy to come up with things outside the work directory that would be nice to keep. For example:

There's no mechanism for this now. I could imagine a pre-reset hook script that would produce a tar file just like the packages do, that then gets seeded back in.

Maybe packages would want to contribute their own files, however. For example, the Rust package might know that the Cargo cache is worth keeping and safe to keep.

And then that opens the question of whether you'd want to be able to do a "harder" reset without this stuff, or without some of this stuff.