Closed MalteEbner closed 1 year ago
Hmm I see :thinking: I think I would maybe try to just replace the action with - run: pipx install poetry
and see if that works for you
Could be a caching issue?
We solved it by the moment by ensuring that all our GitHub actions use exactly the same poetry version.
Possible duplicate of https://github.com/snok/install-poetry/issues/141
We use the snok action to install poetry in a GitHub action:
We randomly get errors like this one:
Then retriggering exactly the same job sometimes lets it run through:
The big difference is that the first (failing) run found an already installed version.
Error cause suspicion
The runs are executed by self-hosted runners on a custom machine with ubuntu 20.04. As the machine has multiple runners, it can happen that multiple runners install and use poetry at the same time. They might even install different versions, as they might run for different branches. This can be the reason for the error, e.g. one runner cleaning up a poetry install that another runner relies on.
Runner-specific poetry installation
How can we install poetry using the snok action in a runner specific directory? Currently, it always uses the home directory, see INSTALL_PATH="$HOME/.local"
Our machine: