Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pixi clean cache --exec doesn't fail when permission denied #2950

Open
1 of 2 tasks
pavelzw opened this issue Jan 18, 2025 · 0 comments
Open
1 of 2 tasks

pixi clean cache --exec doesn't fail when permission denied #2950

pavelzw opened this issue Jan 18, 2025 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Jan 18, 2025

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

❯ pixi exec python --version
Python 3.13.1
❯ chmod 755 /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0
❯ sudo chown root:wheel /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0
❯ touch /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0/test
touch: /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0/test: Permission denied
❯ pixi clean cache --exec
  removed /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0                                                                                                                                                  
❯ ls /Users/pavel/Library/Caches/rattler/cache/cached-envs-v0
python-4d883ede1a0315d/

Issue description

pixi exits without failing

Expected behavior

pixi should failed or at least print a warning that not everything could be deleted

@ruben-arts ruben-arts added the 🐞 bug Something isn't working label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants