You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Remove Overrides from codegen.proto, pass in opts as JSON
The `Overrides` configuration only applies to Go, so we remove it from the codegen plugin proto and instead pass the configuration as JSON to be unmarshaled by the codegen/golang package like other options. Also pull codegen/golang opts into its own package since its about to get a lot more complex.
Eventually we will need to push all of the validation of overrides from internal/config into the codegen/golang package, but that's a fair bit of work so I didn't push it here.
A lot of the changes in this diff are just from pushing the `opts` type within codegen/golang into a package, which is necessary eventually but pretty distracting right now so sorry about that.
Aside from the proto change, which is obviously important, the other meaningful change is to generate.go on line 421, and the function implementation in shim.go. The types in opts/override.go are just recreations of what the plugin proto types were.
0 commit comments