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

Dockerfile Dart Sass permission issue on MacOS #12957

Closed
bep opened this issue Oct 17, 2024 · 3 comments · Fixed by #12959
Closed

Dockerfile Dart Sass permission issue on MacOS #12957

bep opened this issue Oct 17, 2024 · 3 comments · Fixed by #12959

Comments

@bep
Copy link
Member

bep commented Oct 17, 2024

Watching for changes in /project/{archetypes,assets,content,layouts,package.json,postcss.config.js,static}
Watching for config changes in /project/hugo.toml, /project/config/_default, /project/go.mod
Start building sites … 
hugo v0.136.0+extended linux/arm64 BuildDate=unknown VendorInfo=docker

ERROR TOCSS-DART: failed to transform "/sass/main.scss" (text/x-scss): got unexpected EOF when executing "sass". The user running hugo must have read and execute permissions on this program. With execute permissions only, this error is thrown.
ERROR render: failed to render pages: render of "page" failed: "/project/layouts/_default/dart-sass.html:25:23": execute of template failed: template: _default/dart-sass.html:25:23: executing "main" at <.Content>: error calling Content: TOCSS-DART: failed to transform "/temp/sass" (application/octet-stream): "<stream>:1:1": connection is shut down
Built in 593 ms
Error: error building site: TOCSS-DART: failed to transform "/temp/sass" (application/octet-stream): "<stream>:1:1": connection is shut down
@bep bep added the Bug label Oct 17, 2024
@bep bep added this to the v0.136.2 milestone Oct 17, 2024
@bep bep self-assigned this Oct 17, 2024
@dvdksn
Copy link
Contributor

dvdksn commented Oct 17, 2024

Anything I can do to help with this and #12956 ?

@bep
Copy link
Member Author

bep commented Oct 17, 2024

@dvdksn yes, that would be great ... I have put it on my "todo list" for later, but what I see is:

  • When I build the docker image on my MacBook (ARM64), none of the issues described in this and the other issue happens (all works fine)
  • When I run the same site with ghcr.io/gohugoio/hugo:v0.136.1 I have peculiar permission issues for the Dart Sass binary.

So, It's either:

  • Som subtle differences between Docker MacOS vs Linux when building.
  • Or the packaging step is doing some funky stuff.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants