SymfonyCasts / sass-bundle

Delightful Sass Support for Symfony + AssetMapper
https://symfony.com/bundles/SassBundle/current/index.html
MIT License
35 stars 17 forks source link

Open Base Dir Restriction #68

Open PROXCLOUT opened 5 months ago

PROXCLOUT commented 5 months ago

SassBinary.php: 135 file_exists('/etc/alpine-release') ? 'linux-musl' : 'linux';

On bin/console sass:build -> critical Error because System didnt allow to check this path.

Fixed it by hardcoding the variable to "linux"

bocharsky-bw commented 5 months ago

Hey @PROXCLOUT ,

I suppose running it via sudo (with admin permissions) should work for you?

Do you have any ideas on how to fix this? Could you try something like this if (is_readable('/etc/alpine-release') && file_exists('/etc/alpine-release')) - probably it will work for you? Or leverage is_file('/etc/alpine-release')

Also, the exact error message would help with this. And could you share your OS info?

Please, feel free to open a PR if you have a solution on how to fix it.