Support the CACHEDIR.TAG standard for dist and dist-newstyle
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Cache directories tend to be a nuisance for automatic backup tools, because they are very big, which steals network bandwidth and storage capacity from backups.
Users could manually add any Haskell project to their backup CLI with an absolute path, or they could add `--exclude **/dist-newstyle` and pray that no important information on their system uses the same directory name.
Or cabal could implement https://bford.info/cachedir/ and add a `CACHEDIR.TAG` file to its cache directories, meaning tools like `tar --exclude-caches` will ignore the directory.
Previous implementors of this spec I can see on my system (`find . -iname "cachedir.tag"`):
* Rust’s `cargo` has been doing this for some time.
* mypy does it
* torbrowser
* fontconfig
Basically every cache directory that’s not in `/var/cache` or under `$XDG_CACHDIR` should have this file.
Contributor guide
Assessment
This issue has not been assessed yet.