pixi icon indicating copy to clipboard operation
pixi copied to clipboard

feat: Create CACHEDIR.TAG file

Open pavelzw opened this issue 9 months ago • 3 comments

Closes #1904

image

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

pavelzw avatar Mar 13 '25 15:03 pavelzw

I think there is something similar happening in rattler right now cc @prsabahrami

wolfv avatar Mar 13 '25 16:03 wolfv

FYI: https://github.com/conda/rattler/pull/1155

ruben-arts avatar Mar 14 '25 08:03 ruben-arts

@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?

baszalmstra avatar Apr 11 '25 09:04 baszalmstra

@ruben-arts @Hofer-Julian @lucascolley how should we follow-up with this PR? Should i rebase main?

pavelzw avatar Aug 18 '25 11:08 pavelzw

@pavelzw I think that would be the way forward right now.

ruben-arts avatar Aug 18 '25 14:08 ruben-arts

I believe we're good on this one, I'll close it.

ruben-arts avatar Nov 21 '25 13:11 ruben-arts

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

pavelzw avatar Nov 21 '25 14:11 pavelzw