Open pablochacin opened 10 months ago
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. :+1:
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: