-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
[Enhancement]: modulegen: print output from failed commands #1689
Comments
I think there is a bug in the example template, but it should work if you create a module instead of a example: In the mean time, instead of creating an example, please try with a real module. - go run . new example --name k6 --image "grafana/k6" --title k6
+ go run . new module --name k6 --image "grafana/k6" --title k6 |
We saw that the docs are a bit misleading, as the first code snippet is for creating an example module (just copy&paste code, no public API) when it should be just the module. |
Hi @mdelapenya thanks for the clarification. I tried that and it worked. 👍 I think it would be worth providing more information about the reason for the failure in the command. |
Proposal
When generating the scaffold for a new module, the modulegen tool executes multiple commands.
In case one of them fails, it is only reported the step that failed, but the actual error is not reported, as seen in the following output:
A more detailed output from the tool would facilitate the debugging of errors. For example:
The text was updated successfully, but these errors were encountered: