actions / actions/setup-python
Bug: `"pip"` cache having nothing installed leads to post-run error
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 739
- Merge medio
- 6g 18h
- PR unite (30g)
- 1
Descrizione
Description:
I have this:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
Bumping python-version from '3.10' to '3.12', I am now getting this error during Post Run actions/setup-python@5:
Post job cleanup.
Error: Cache folder path is retrieved for pip but doesn't exist on disk: /home/runner/.cache/pip
Action version:
v5
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
3.10.13 to 3.12.1
Expected behavior:
I expect setup-python to somehow not error itself.
Seemingly related issues:
- https://github.com/actions/setup-python/issues/653
- https://github.com/actions/setup-python/issues/436
Actual behavior:
Here is the output of Run actions/setup-python@v5
with:
python-version: 3.12
cache: pip
check-latest: false
token: ***
update-environment: true
allow-prereleases: false
env:
...
Installed versions
Successfully set up CPython (3.12.1)
/opt/hostedtoolcache/Python/3.12.1/x64/bin/pip cache dir
/home/runner/.cache/pip
pip cache is not found
Here is the output of Post Run actions/setup-python@5:
Post job cleanup.
Error: Cache folder path is retrieved for pip but doesn't exist on disk: /home/runner/.cache/pip
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con la gestione della cache di actions/setup-python@v5 e riproduci il workflow Ubuntu hosted-runner mostrato nell’issue usando Python 3.12 e una cache pip vuota. Traccia la pulizia post-esecuzione dopo che il log segnala che /home/runner/.cache/pip manca; il lavoro è completato quando questo workflow termina senza errori se non è stato installato nulla.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, python, typescript
- Ambito
- ci-cd, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100