ChartBoost / ruff-action

A GitHub Action for Ruff
Apache License 2.0
121 stars 21 forks source link

ruff failed Cause: Failed to create cache file #10

Closed devendr4 closed 5 months ago

devendr4 commented 7 months ago

image

I suddenly started getting this issue when running the github action

installing ruff...
ruff failed
  Cause: Failed to create cache file '/home/runner/work/reportin/reportin/.ruff_cache/0.1.12/13271580516683047953'
  Cause: No such file or directory (os error 2)
LoverCheng commented 7 months ago

Hi bro. I find when I add the missing directory, then this script would be fun:

you can do it like below:

- uses: actions/checkout@v3
- run: mkdir -p /home/runner/work/reporting/reportin/.ruff_cache/0.1.12/
- uses: chartboost/ruff-action@v1
devendr4 commented 7 months ago
  • run: mkdir -p /home/runner/work/reporting/reportin/.ruff_cache/0.1.12/

Thanks @LoverCheng this worked, but it's weird that it was working properly without that before

LoverCheng commented 7 months ago
  • run: mkdir -p /home/runner/work/reporting/reportin/.ruff_cache/0.1.12/

Thanks @LoverCheng this worked, but it's weird that it was working properly without that before

Yeah, it's weird. I also do not know what has happened.

brucearctor commented 5 months ago

marking closed since 'working'