Extend PKG_CONFIG_PATH rather than overwriting it
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, typescript
Direzione di ricerca
L’issue identifica la gestione di PKG_CONFIG_PATH da parte di setup-python come punto di ingresso; esamina il codice dell’action relativo all’ambiente e alla scrittura dei percorsi, nonché tutti i test pertinenti. Verifica il comportamento con un PKG_CONFIG_PATH esistente e conferma che siano ancora disponibili sia le directory precedenti sia quelle generate. Il lavoro è già rappresentato da PR #1242.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description:
As of now, the setup-python action overwrites the PKG_CONFIG_PATH variable during its execution, which can lead to errors if this variable has already been set to a specific value (which is then no longer available). PKG_CONFIG_PATH works as the normal PATH does (from the man page of pkg-config)
PKG_CONFIG_PATH
A colon-separated list of high-priority directories where pc(5) files are looked up.
It would therefore be a good idea to instead extend PKG_CONFIG_PATH by adding the new directory to the existing value if one is present in the environment. This will make both existing and new pc files available (We would not want to overwrite PATH either, would we?)
Justification:
I realized this issue after debugging session of a CI pipeline which had a global
env:
PKG_CONFIG_PATH: '/special/path'
attached to a given workflow. After installing python using setup-python the python dependencies (which included a native library with a pc file) could not be installed any more, since that variable had been overwritten. This is a rather insidious error which is really hard to find.
Are you willing to submit a PR?
Working on a PR.
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 739
- Merge medio
- 6g 18h
- PR unite (30g)
- 1
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.
Altre issue di actions/setup-python
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
actions/setup-python#1348 · 5 commenti ·
-
feature request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
actions/setup-python#1346 · 12 commenti ·
-
feature request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
actions/setup-python#1308 · 8 commenti ·
-
feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
actions/setup-python#1301 · 5 commenti ·
-
feature request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
actions/setup-python#1294 · 3 commenti · 2 reazioni ·