-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Consider YAML vs datadir vs config vs non-string keys #4393
Comments
They fail. We will have to think about this. See #4393
@vassudanagunta let us handle this in this issue. I have disabled some YAML tests for now. There are many arguments for keeping it as it is now (string keys all over). The question is: Do we break something? Or: Maybe we fix more than we break? /cc @dmgawel |
Roger. Just please leverage the significant time I already put into #4379. Pretty please 😉 . |
@vassudanagunta #4379 looks like a bigger issue, and I don't have time to consider that (at least not now). Remember: I did not implement the front matter handling nor the data handling, and I don't think it's fair to ask me to dig myself into a "rabbit hole" (your words) dug by others. But I will try to fix this particular issue. And my thoughts are this:
So, here is how I suggest we do this:
I suspect this will fix plenty more than it breaks. If anyone knows of any dramatic downside to the above, speak out. |
I thought it was fair to ask you given that you are the current steward of Hugo's vision and evolution toward 1.0. 😀 And to be fair(er), I did most of the work of laying things out very clearly. All that was needed was a decision by people who know Hugo's vision and have been around long enough to know what its users expect (not me!). And above, you did just that! You definitively answered one of the two main issues I raised #4379 with a clear vision. So thanks! ❤️ I will update the tests as well as #4379 so that when you and the other Hugo maintainers have time, you can take a look at the remaining issue (overlapping data). All that is needed is a decision, including the decision to punt, in which case just merge #4379 as-is as it codifies in tests Hugo's current behavior, guarding against unintentional changes as well as clarifying it for anyone who decides something should change. |
Also gave basic tests for JSON, YAML and TOML identical inputs and expected outputs, a step toward JSON, YAML and TOML equivalency (see #4393 (comment)).
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. |
No description provided.
The text was updated successfully, but these errors were encountered: