-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Add support for a flag to disable symlink checking / no-symlink enforcement #9842
Comments
There are currently two areas which currently does not support
I suspect that we could improve the first one (as in, remove the
It is not clear why this is, but Bazel is an open source project, have you reached out to that project and asked them to make adjustments? |
@lewish I just ran into the same issue. I ended up making a temporary directory, copying everything over while resolving symlinks and ran @bep I doubt that Bazel will change, they use the symlinks to create restricted environments for builds. The environments only include what has been explicitly declared as files/targets that they consume as a technique to make as reproducible builds as possible. |
I am also running into this problem while trying to set up a site on a server with divisions of the site managed by different users. I was hoping (given #1857) that a partial workaround would be to use the
Is there a way that a temporary fix could be made to expand the "resolving symlinks when they're the top-level folder" feature to include multiple |
I just ran into this problem when using Hugo in nix which (ab)uses symlinks. I have no idea why this is a security concern, if you can get around it easily |
Agree as well that having such an option would be very valuable. I need symlinks in the static subfolder and want to avoid manually copying files into it every time anything changes to rebuild the website. |
@yuraic The idiomatic way to handle this is with mounts, but perhaps your situation is different.
|
This is no longer relevant. We removed symlink support in v0.123.0. Use mounts instead. |
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. |
Current version of hugo checks for symlinks in a number of folders and throws an error:
Unsupported symlink found
when it does so.This was done for security reasons, AIUI - #6225 for context.
This makes hugo practically impossible to use with Bazel, which we and it seems some others would like to do so.
I would like to propose a command line flag to disable the symlink checking, that a user may use at their own risk, e.g:
I have this working on my own fork with Bazel, and as a proof of concept this all appears to work fine. Would the team be open to this CLI option?
The text was updated successfully, but these errors were encountered: