-
-
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
Panic with "hugo new" #9056
Comments
The |
There's no such thing as an orphaned ".hugo_build.lock". |
I suspect is a symptom of "something else" (which we need to fix), but could you try to do the same with: [[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'en'
[[module.mounts]]
source = 'content/de'
target = 'content'
lang = 'de' |
Starting each test with an empty This fails: [languages.en]
weight = 1
contentDir = 'content/en'
[languages.de]
weight = 2
contentDir = 'content/de'
[[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'en'
[[module.mounts]]
source = 'content/de'
target = 'content'
lang = 'de' This works: [languages.en]
weight = 1
# contentDir = 'content/en'
[languages.de]
weight = 2
# contentDir = 'content/de'
[[module.mounts]]
source = 'content/en'
target = 'content'
lang = 'en'
[[module.mounts]]
source = 'content/de'
target = 'content'
lang = 'de' |
I will fix this tomorrow, thanks for testing ... |
This may generate some noise in the forum...
|
Sure, but it's there for a good reason. I'm going to document it.
|
@jmooring I can reproduce the above, but only if the source contentDIrectories do not exist, which sounds like a error situation to me ... Also, I get that same error situation in both of the above. |
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. |
hugo v0.89.0-DEV-096F5E19+extended linux/amd64 BuildDate=2021-10-18T09:08:01-0700
Site configuration:
Then I tried to create a new page:
panic: runtime error: index out of range [-1]
This also produced an orphaned ".hugo_build.lock" file in the root of the project.
The text was updated successfully, but these errors were encountered: