actions / actions/setup-python
Difference between env.pythonLocation on macOS in Python 3.11+
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'm encountering a strange issue related to caching the Python installation. I'm using actions/setup-python@v5.0.0 to install Python, then actions/cache@v4.0.0 to cache the env.pythonLocation directory, similar to this blog.
This works fantastically, except on macOS in Python 3.11 and 3.12, and I have no idea why. For some reason, the cache is empty, but only for those specific versions. Did anything change in the installation layout or env.pythonLocation variable that could explain this?
Action version:
5.0.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Python 3.11, 3.12
Repro steps:
The full workflow can be seen here.
Expected behavior:
I would expect this to work for all platforms/Python versions and cache the installed Python packages.
Actual behavior:
The cache is empty. See https://github.com/actions/cache/issues/1176 for the cross-referenced bug report.
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 il workflow referenziato .github/workflows/tests.yaml e confronta env.pythonLocation e i contenuti della cache su macOS con Python 3.11 e 3.12. Leggi l’issue 1176 di actions/cache referenziata in questo report insieme a questo report; il lavoro è completato quando il comportamento specifico della piattaforma/versione è spiegato e il comportamento di caching interessato ha una risoluzione verificata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, python, typescript
- Ambito
- ci-cd, devops
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100