mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:07 +00:00
Tested on Fedora 40 with Podman 5.1.1 and ruff "0.5.0" and "latest". source: https://unix.stackexchange.com/q/651198 ## Error without fix ```` $ podman run --rm -it -v .:/io ghcr.io/astral-sh/ruff:latest check error: Failed to initialize cache at /io/.ruff_cache: Permission denied (os error 13) warning: Encountered error: Permission denied (os error 13) All checks passed! $ podman run --rm -it -v .:/io ghcr.io/astral-sh/ruff:latest format error: Failed to initialize cache at /io/.ruff_cache: Permission denied (os error 13) error: Encountered error: Permission denied (os error 13) ```` ## Summary Running ruff by using a docker container requires `:Z` when mounting the current directory on Fedora with SELinux and Podman. ## Test Plan ```` $ podman run --rm -it -v .:/io:Z ghcr.io/astral-sh/ruff:latest check $ podman run --rm -it -v .:/io:Z ghcr.io/astral-sh/ruff:0.5.0 check ```` |
||
|---|---|---|
| .. | ||
| .overrides/partials/integrations/analytics | ||
| assets | ||
| formatter | ||
| stylesheets | ||
| .gitignore | ||
| configuration.md | ||
| faq.md | ||
| formatter.md | ||
| installation.md | ||
| integrations.md | ||
| linter.md | ||
| preview.md | ||
| requirements-insiders.txt | ||
| requirements.txt | ||
| tutorial.md | ||
| versioning.md | ||