<#19515 The `named_caches` dir cannot be deleted a...
# github-notifications
c
#19515 The `named_caches` dir cannot be deleted any longer without extra measures. Issue created by jsirois This appears to be purposeful, but I'm not sure if this consequence was anticipated: pants/src/python/pants/backend/python/providers/pyenv/rules.py Lines 190 to 193 in </pantsbuild/pants/commit/ece594949290be035cba5bec2ed0faeb77302914|ece5949> Looks like:
Copy code
$ rm -rf ~/.cache/pants/named_caches/
rm: cannot remove '/home/jsirois/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.9.16/include/python3.9/code.h': Permission denied
rm: cannot remove '/home/jsirois/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.9.16/include/python3.9/pydtrace.h': Permission denied
rm: cannot remove '/home/jsirois/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.9.16/include/python3.9/pystrcmp.h': Permission denied
...
I have no real stake here; so this may be deemed working as intended, but I did notice it vetting support I was giving in Pants slack for a Pex version upgrade via
[pex-cli]
pants.toml
edits. pantsbuild/pants