-
-
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
Refactor the globals out of site build #2701
Comments
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates gohugoio#2701
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates #2701
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates gohugoio#2701 Fixes gohugoio#3016
Now: * The template API lives in /tpl * The rest lives in /tpl/tplimpl This is bound te be more improved in the future. Updates gohugoio#2701
Now: * The template API lives in /tpl * The rest lives in /tpl/tplimpl This is bound te be more improved in the future. Updates #2701
I think, it would be better to rename and |
You should create a new issues for new issues, a closed issue is ... closed. However, provider does not tell what it provides -- |
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. |
There currently is a controlled, but careful, dance in the tests to set a set of global state before each test. While this is controlled and has no performance impact for the end result, it it not best practice, it is hard to reason about and it prevents us from using
t.Parallel
to potentially speed up the test suite.We have done some considerably work around this area, so when we get some of the big PRs in the pipeline merged, it may be time.
From my head this means:
There are plenty of details left out in the above, but it should be complete in general.
The text was updated successfully, but these errors were encountered: