wasmCloud / wash

WAsmcloud SHell - the comprehensive command-line tool for wasmCloud development
https://wasmcloud.com
Apache License 2.0
149 stars 58 forks source link

feat: generate golang code during wash build #943

Closed vados-cosmonic closed 8 months ago

vados-cosmonic commented 8 months ago

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. 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.

Related Issues

Release Information

Consumer Impact

Testing

Built on platform(s)

Tested on platform(s)

Unit Test(s)

Acceptance or Integration

Manual Verification