#hypothetical question 1
1 messages · Page 1 of 1 (latest)
.
If we shipped a version of cloak that literally didn't have the extensions feature, would that version of cloak still need to load a cloak.yaml file?
Not that I can think of, no
what about the SDK config you mentioned: is that how we'll hook up eg. the new client-side codegen stuff @dusky bronze is working on?
I think we can just re-use language native features for that (i.e. //go generate directives, npm scripts, etc.)
extensions are different because they are essentially dependencies, but as discussed a long time ago trying to use language native dependency managers for our use case is really hard
Not required.
Code generation needs some information. Can be passed to the generate command instead (what the codegen POC is doing).
Putting that in the manifest is syntactic sugar so all options are consolidated into a single place rather than scattered around
e.g.
- for extensions, we need to know the language (to compile the extension)
- for codegen, we need to know the language (to generate stubs in the right language)
and so they both share the same information from cloak.yaml to avoid repetition. But not required.
Unless I'm forgetting something
But for instance in this morning's demo I had an empty cloak.yaml (not an extension and didn't need to import extensions)