Go: run go build
after code generation
#2463
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Milestone
🚀 Feature Request
Affected Languages
golang
General Information
To ensure that the generated go output is valid, I would recommend running
go build
on the resulting artifact so that errors will be discovered during build and not when the module is consumed.Description
The issue #2457 uncovered a weakness in how go code is generated. The result was invalid but
jsii-pacmak
successfully finished.Proposed Solution
By executing
go build
after code generation, we can ensure that the output compiles. Otherwise, this would have only be discovered when the module is consumed, which is definitely not a great experience.The text was updated successfully, but these errors were encountered: