Closed tmbo closed 2 years ago
The workflow seems to run fine here: https://github.com/sondrelg/issue-104/actions/runs/3315315838/jobs/5475752366 :thinking: Did I set it up wrong somehow?
Thanks a lot for jumping on this. I found the issue: the poetry installation is cached and for some reason it cached a broken installation - I am not sure why there was an installation broken, but in any case - this is the reason why it didn't work.
I'll close this one as the issue isn't your (great!) installer.
I think I might know why actually. It used to break for me every time a new Python patch version came out. If you include -${{ steps.setup-python.outputs.python-version }}
in your cache key it should clear the cache automatically in these cases :+1:
ah thanks that is helpful :+1:
Our builds started failing after a github runner image update.
On the github runner image Version: 20221018.2 the installation with snok/install-poetry leads to a non function poetry install. The install step does not fail, but poetry is not usable afterwards. Release notes of the github runner update: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20221018.2
The exact same workflow works with the github runner image version Version: 20221002.2 without issues.
The logs show, that there seems to be an issue within the snok/install-poetry step:
You can see the
/home/runner/.local/venv/bin/python: bad interpreter: No such file or directory
error in the logs. I am not exactly sure what the issue is but it sounds like the python path is off.The only difference it the github runner image used, apparently github updated the image in between builds which led the builds to fail. I've attached the logs starting at the checkout step.
Used workflow steps:
Failing Log: