The call to getRegisteredIconSources() will make 5 repeated calls to curl the font-awesome.json file out of the cpresources files and uses a fully qualified URL to do this, which is working fine on our dev machines, but in hosted and CI/CD environments, the machine may not allow it to curl itself using an outside name.
This was causing our install to fail completely in our AWS-hosted CI/CD servers, until we turned the icon-picker plugin off.
Could the implementation for getting the font-awesome.json file be changed from
Description
The call to getRegisteredIconSources() will make 5 repeated calls to curl the
font-awesome.json
file out of thecpresources
files and uses a fully qualified URL to do this, which is working fine on our dev machines, but in hosted and CI/CD environments, the machine may not allow it to curl itself using an outside name.This was causing our install to fail completely in our AWS-hosted CI/CD servers, until we turned the icon-picker plugin off.
Could the implementation for getting the
font-awesome.json
file be changed fromto
getPublishedUrl
changed togetPublishedPath
and then avoid the Guzzle Curl to changeto
Additional info
I've put this into a pull request here: https://github.com/verbb/icon-picker/pull/17