-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Panic with hugo new if target folder is a symbolic link #9537
Comments
Confirmed. Panic introduced with 9185e11. |
Run into the same issue, needed to write a workaround bash script facilitating |
Won't fix. See #11556. |
@jmooring Just to clarify, is this the correct way to achieve the same result as my symbolic link — using module mount instead? [module]
[[module.mounts]]
source = '../../notes/Second brain/blog/drafts'
target = 'content/posts/drafts'
[[module.mounts]]
source = 'content'
target = 'content' It seems to work :) |
Yes. See https://gohugo.io/getting-started/directory-structure/#union-file-system. |
Perfect, thank you. This is indeed a much better solution than the symbolic 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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The problem
hugo new
fails if target folder is a symbolic link:Target folder
drafts
is a symbolic link.The file
content/posts/drafts/test/index.md
does get created, but with the following content:This used to work, but has been broken. Not entirely sure in what version it stopped working, but it may have been related to the following change:
The text was updated successfully, but these errors were encountered: