simplesamlphp / simplesamlphp/simplesamlphp-module-discopower
Symlinks don't install correctly when Composer falls back on the PHP zip library
Nessuno ha ancora preso questa issue.
- Lingua principale
- PHP
- Stelle
- 5
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I couldn't figure out why the Discopower module wasn't installing correctly inside my Docker image of SSP. The symlinks under modules/discopower/public/assets/components were being installed as text files containing the path where they would have pointed had they been symlinks. This obviously didn't work so great when my browser tried to load the Jquery Javascript for Discopower.
After further investigation, I tried installing unzip into my Docker image before running composer, and that fixed it. I now have symlinks instead of text files. Clearly, the PHP zip library doesn't understand symlinks.
If possible, installation of this module should require that the unzip or 7z binary be installed on the system and not just the PHP zip library.
If that's not possible, the documentation should at least include this requirement for proper installation.
Ideally, these symlinks wouldn't be necessary, and the disco.twig code that loads these components would point to the files directly instead of the symlinks inside of the module.
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 riproducendo l'installazione di Composer nella configurazione Docker descritta, confrontando la libreria zip di PHP con unzip o 7z. Esamina modules/discopower/public/assets/components e il codice disco.twig che carica questi asset. Il lavoro è completato quando il comportamento dell'installazione o il requisito di sistema documentato gestisce chiaramente i symlinks.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100