Skip to content

Commit

Permalink
Add fix for setup-python error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy4495 committed Jun 28, 2024
1 parent 2810d98 commit f785b8c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ I have several template workflows available in my [.github repository][12]:

### `arduino-compile-sketches` Action

One problem occurs when using Arduino's [`compile-sketches`][8] action. Release [v1.1.0 of the `compile-sketches` action][10] changed the Python and related tools configuration to make the action incompatible with the default `act` image ([`catthehacker/ubuntu:act-latest`][9]).
Release [v1.1.0 of the `compile-sketches` action][10] changed the Python and related tools configuration to make the action incompatible with the default `act` image ([`catthehacker/ubuntu:act-latest`][9]).

In particular, the following messages will be appear in the `act` output when trying to use `compile-sketches` v1.1.0 and the `ubuntu:act-latest` image, and the job will fail:

Expand Down Expand Up @@ -141,6 +141,22 @@ By checking for the environment variable [`env.ACT`][11] first, the PATH update

Note that versions of the `ubuntu:act-latest` image published before 18-Sep-2023 have additional issues, but the latest published version only requires the above change (see [61][61-images] and [74][74]).

### Python Installation Error When Running `compile-sketches` Action

If you see the following error when running the `compile-sketches` job:

```text
::error::rm: cannot remove '/opt/hostedtoolcache/Python/3.11.2': Directory not empty
```

Then try running the following command:

```shell
rm -r ~/.cache/act/actions-setup-python@v5
```

I am pretty sure that I have only noticed this problem on newly installed setups. I do not completely understand what causes the problem, but deleting the local cache and forcing `act` to re-download `setup-python` (instead of using a local copy) fixes it.

### Timeout and Rate-limiting Errors

When using `act`, I occasionally run into timeout and rate-limiting errors that aren't specific to the actions themselves. These errors can generally be cleared by waiting a few minutes and then re-running the action.
Expand Down

0 comments on commit f785b8c

Please sign in to comment.