actions / actions/setup-python
Difference between env.pythonLocation on macOS in Python 3.11+
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.2k
- Forks
- 739
- Merge moyen
- 6 j 18 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par le workflow référencé .github/workflows/tests.yaml et comparez env.pythonLocation et le contenu du cache sur macOS avec Python 3.11 et 3.12. Lisez l’issue 1176 de actions/cache référencée dans ce rapport en parallèle de celui-ci ; le travail est terminé lorsque le comportement spécifique à la plateforme/version est expliqué et que le comportement de mise en cache concerné dispose d’une résolution vérifiée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github-actions, python, typescript
- Domaine
- ci-cd, devops
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100