Components-first golang actors require that go generate be run, with wit-bindgen as the directive. While this is easy to do, it makes the build workflow (i.e. calling wash build) require more steps.
This commit adds support for running the golang wit-bindgen functionality as a part of wash build, so that users don't have to call wit-bindgen themselves, or add stanzas for generate to their code.
In the future, examples can be created that assume that the 'generated' folder is present, and import code as necssary.
Feature or Problem
Components-first golang actors require that
go generate
be run, with wit-bindgen as the directive. While this is easy to do, it makes the build workflow (i.e. callingwash build
) require more steps.This commit adds support for running the golang wit-bindgen functionality as a part of
wash build
, so that users don't have to call wit-bindgen themselves, or add stanzas for generate to their code.In the future, examples can be created that assume that the 'generated' folder is present, and import code as necssary.
Related Issues
Release Information
Consumer Impact
Testing
Built on platform(s)
Tested on platform(s)
Unit Test(s)
Acceptance or Integration
Manual Verification