Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart-sass-embedded permissions error #7

Open
russbiggs opened this issue Dec 3, 2022 · 1 comment
Open

dart-sass-embedded permissions error #7

russbiggs opened this issue Dec 3, 2022 · 1 comment

Comments

@russbiggs
Copy link

I'm using this action to attempt to build a site using dart-sass. The build works locally but the action fails with the following error:

hugo v0.107.0-2221b5b30a285d01220a26a82305906ad3291880+extended linux/amd64 BuildDate=2022-11-24T13:59:45Z VendorInfo=docker
Error: Error building site: TOCSS-DART: failed to transform "scss/main.scss" (text/x-scss): got unexpected EOF when executing "dart-sass-embedded". The user running hugo must have read and execute permissions on this program. With execute permissions only, this error is thrown.

This seems pretty straightforward to fix by just adjusting the permissions in the image here:

https://github.com/jakejarvis/hugo-docker/blob/master/Dockerfile#L120

I've attempted this change with

chmod 755 /usr/bin/dart-sass-embedded 

but still get the same error from Hugo. Happy to contribute with a PR, but I'm a bit stuck on what else might be going on here, or if I'm missing something.

I've set up a minimal example repo here:
https://github.com/russbiggs/hugo-dart-sass-example

@russbiggs
Copy link
Author

After more investigation it looks like this may be a much more upstream issue with Dart and Alpine linux support. see more here:

sass/dart-sass-embedded#106

sass/embedded-host-node#155

dart-lang/sdk#40906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant