Consider the following command:
wit-bindgen go -w wrld --out-dir baz --mod-name github.com/foo/bar/baz ./wit
The package name wit_component contained in the generated baz/wit_bindings.go and the output directory baz won't match and cause package errors.
I see two possible ways to view this:
- This is acceptable behavior and just needs to be documented
- This is not acceptable behavior and we need to update the logic on this line.
@dicej Eager to hear your thoughts!