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

Unsupported symlink found #6225

Closed
julian-klode opened this issue Aug 15, 2019 · 5 comments
Closed

Unsupported symlink found #6225

julian-klode opened this issue Aug 15, 2019 · 5 comments
Labels

Comments

@julian-klode
Copy link

julian-klode commented Aug 15, 2019

I haven't built my blog in a while, but I'm getting a ton of failures now and can't proceed:

Building sites … WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-brands-400.ttf", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-brands-400.svg", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-brands-400.woff", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-brands-400.woff2", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-regular-400.eot", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-regular-400.svg", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-regular-400.ttf", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-regular-400.woff", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-regular-400.woff2", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-solid-900.eot", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-solid-900.svg", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-solid-900.ttf", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-solid-900.woff", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-solid-900.woff2", skipping.
WARN 2019/08/15 18:53:59 Unsupported symlink found in "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/static/webfonts/fa-brands-400.eot", skipping.
ERROR 2019/08/15 18:53:59 Failed to read Git log: fatal: unknown error occured while reading the configuration files
ERROR 2019/08/15 18:53:59 render of "page" failed: execute of template failed: template: _default/single.html:13:3: executing "_default/single.html" at <partial "mastodon" .>: error calling partial: "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/layouts/partials/mastodon
.html:23:23": execute of template failed: template: partials/mastodon.html:23:23: executing "partials/mastodon.html" at <resources.Get>: error calling Get: symlinks not allowed in this filesystem
ERROR 2019/08/15 18:53:59 render of "page" failed: execute of template failed: template: _default/single.html:13:3: executing "_default/single.html" at <partial "mastodon" .>: error calling partial: "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/layouts/partials/mastodon
.html:23:23": execute of template failed: template: partials/mastodon.html:23:23: executing "partials/mastodon.html" at <resources.Get>: error calling Get: symlinks not allowed in this filesystem
ERROR 2019/08/15 18:53:59 render of "page" failed: execute of template failed: template: _default/single.html:13:3: executing "_default/single.html" at <partial "mastodon" .>: error calling partial: "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/layouts/partials/mastodon
.html:23:23": execute of template failed: template: partials/mastodon.html:23:23: executing "partials/mastodon.html" at <resources.Get>: error calling Get: symlinks not allowed in this filesystem
ERROR 2019/08/15 18:53:59 render of "page" failed: execute of template failed: template: _default/single.html:13:3: executing "_default/single.html" at <partial "mastodon" .>: error calling partial: "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest/layouts/partials/mastodon
.html:23:23": execute of template failed: template: partials/mastodon.html:23:23: executing "partials/mastodon.html" at <resources.Get>: error calling Get: symlinks not allowed in this filesystem
Total in 89 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:13:3: executing "_default/single.html" at <partial "mastodon" .>: error calling partial: "/home/jak/Projects/Stable/blog.jak-linux.org/themes/ernest
/layouts/partials/mastodon.html:23:23": execute of template failed: template: partials/mastodon.html:23:23: executing "partials/mastodon.html" at <resources.Get>: error calling Get: symlinks not allowed in this filesystem

This used to work perfectly fine back in Jun 13.

@julian-klode
Copy link
Author

It's https://github.com/julian-klode/blog.jak-linux.org, the theme is included as a submodule https://github.com/julian-klode/ernest/tree/20d409d466cd1a150b6affdf2c6d3c6bead96a76 and it contains various symlinks in static/webfonts (to link to the fonts gotten via npm).

These symlinks were resolved and then the real file put into the output as intended.

@bep
Copy link
Member

bep commented Aug 15, 2019

We stopped supported symlinks from themes in a recent release. Mostly for security reasons, but we also added a powerful directory mount support that should be possible to replace those symlinks in a more portable and easier to reason about manner.

You may want to ask further questions on https://discourse.gohugo.io/

@bep bep closed this as completed Aug 15, 2019
@ysqi
Copy link
Contributor

ysqi commented Sep 7, 2019

@bep why don't give option, sometimes We known what we are doing.

I just add symlinks to my static dir.

ln -s $static/assets  $ProjectRoot/assets

@Kernald
Copy link

Kernald commented Oct 14, 2019

This breaks the integration with some build systems that are relying on symlinks to sandbox the inputs (i.e. Bazel). This is not great :-(

@github-actions
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 Feb 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants