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

Non-deterministic behavior of template lookup with wrong naming convention #7130

Closed
ChrisLasar opened this issue Apr 4, 2020 · 4 comments
Closed

Comments

@ChrisLasar
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.67.0/extended linux/amd64 BuildDate: unknown

and

$ brew switch hugo 0.68.3
$ hugo version
Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?

Yes, see above

Setting

Having two templates in my module for the layout

  • layouts/topics/list.html
  • layouts/topics/terms.html

This module is imported (locally) in my project. There I start

$ hugo serve -D

I now just save files without changing them to "trigger builds".

Sometime hugo uses the list.html, sometimes it uses the terms.html template.

While this is with looking up templates in an imported module, I also have the impression, that hugo sometimes misses some content files. However, I did not spend time to reproduce it that clearly yet.

Might be related with #7123.

@ChrisLasar
Copy link
Author

Switched back to 0.62.2 and the problem disappears

$ brew install https://raw.githubusercontent.com/chenrui333/homebrew-core/f7b07c345de912435fcb3f1b10929128590f9e1c/Formula/hugo.rb
...
$ hugo version
Hugo Static Site Generator v0.62.2/extended linux/amd64 BuildDate: unknown

Not saying that the problem is introduced with hugo 0.63.0. Just guessing from the logs that 0.62.2 might work.

@ChrisLasar
Copy link
Author

ChrisLasar commented Apr 5, 2020

Used /content/<TAXONOMY>/<TERM>.md instead of /content/<TAXONOMY>/<TERM>/_index.md.

After fixing the file names & pathes the non-deterministic behavior disappears with hugo 0.68.3.

Wonder if a non-deterministic behavior is expected here? However, feel free to close this issue.

@ChrisLasar ChrisLasar changed the title Hugo lookups switch between builds Non-deterministic behavior of template lookup with wrong naming convention Apr 5, 2020
@stale
Copy link

stale bot commented Aug 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Aug 3, 2020
@stale stale bot closed this as completed Sep 2, 2020
@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 Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant