feat: Create CACHEDIR.TAG file
Closes #1904
alternatively, we could also create the CACHEDIR.TAG file in .pixi/envs. I don't have strong opinions on this. Backup tools might not catch .pixi/config.toml in this implementation but .gitignore also doesn't in the default configuration.
https://github.com/prefix-dev/pixi/issues/1904#issuecomment-2311743087
Should we then maybe break currents standards by moving the config.toml to a seperate config folder, and exclude that folder?
@tdejager tbh i would be in favor of that, the current way is a bit unintuitive imo
I think there is something similar happening in rattler right now cc @prsabahrami
FYI: https://github.com/conda/rattler/pull/1155
@prsabahrami would you be able to check this PR and see if this is something you think we should do either here or in rattler?
@ruben-arts @Hofer-Julian @lucascolley how should we follow-up with this PR? Should i rebase main?
@pavelzw I think that would be the way forward right now.
I believe we're good on this one, I'll close it.
I believe we're good on this one
i dont think so @ruben-arts. this was created with the latest pixi from main.
❯ ls -lah
total 40
drwx------@ 7 pavel staff 224B Nov 21 15:22 ./
drwx------@ 10220 pavel staff 319K Nov 21 15:22 ../
-rw-r--r--@ 1 pavel staff 128B Nov 21 15:22 .gitattributes
-rw-r--r--@ 1 pavel staff 47B Nov 21 15:22 .gitignore
drwxr-xr-x@ 5 pavel staff 160B Nov 21 15:22 .pixi/
-rw-r--r--@ 1 pavel staff 7.6K Nov 21 15:22 pixi.lock
-rw-r--r--@ 1 pavel staff 270B Nov 21 15:22 pixi.toml
❯ ls -lah .pixi
total 16
drwxr-xr-x@ 5 pavel staff 160B Nov 21 15:22 ./
drwx------@ 7 pavel staff 224B Nov 21 15:22 ../
-rw-r--r--@ 1 pavel staff 25B Nov 21 15:22 .condapackageignore
-rw-r--r--@ 1 pavel staff 15B Nov 21 15:22 .gitignore
drwxr-xr-x@ 3 pavel staff 96B Nov 21 15:22 envs/
❯ ls -lah .pixi/envs
total 0
drwxr-xr-x@ 3 pavel staff 96B Nov 21 15:22 ./
drwxr-xr-x@ 5 pavel staff 160B Nov 21 15:22 ../
drwxr-xr-x@ 9 pavel staff 288B Nov 21 15:22 default/
also, i can't find a CACHEDIR.TAG in ~/Library/Caches/rattler.
can you please reopen this pr? then i'll rebase it and put CACHEDiR.TAG in .pixi/envs