-
-
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
Verbose Go Mod Status #6519
Comments
🙏 |
In #6520 I have added some timer output if collecting modules takes "some time". While testing it, I do see that Go prints when it downloading modules. Are you not currently seeing the "go: finding ..." statements? And yes, I do find it curious that the "Total in ..." is less than "Collected modules ...", but that's because the module collection happens in the init phase and not during the build. I will try to fix that so it looks more "honest". But the below also shows that once cached, the module collection takes no time.
|
The same output from a more modular site:
Second build is with "warm cache". |
Also include the time to collect modules etc. in the "Total in ..." time reported for the `hugo` command. Fixes gohugoio#6519
I'm merging the above PR. If it still isn't good enough, please shout. |
Also include the time to collect modules etc. in the "Total in ..." time reported for the `hugo` command. Fixes #6519
Looks good. I've found that there is a long delay between running the build and when Maybe having a (I also hope that I'm doing my cacheing correctly.) |
I kind of dislike to fill my screen with lots of lines for every build if I don't have to and since this is delegated to Go and there is no more verbose output to have there (I checked), the best thing we could add is a "Start collecting ..." which we can add, but just as a INFO statement. When I test this with a site with 8-10 modules, I get like 9 seconds the first time (clean cache), then 20-milliseconds or so for the subsequent builds. If you see something else, you should check your cache setup (and do not run with --ignoreCache). Cache is good. |
I will take one more stab at this. |
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. |
Could we get a verbose readout while Go Mods / Hugo Mods are fetched? This can take a while, and having some sort of visibility of what's happening would make the UX/UI better.
The text was updated successfully, but these errors were encountered: