grafana / thema

A CUE-based framework for portable, evolvable schema
Apache License 2.0
229 stars 12 forks source link

Inconsistent lineage errors between thema cli and library #159

Closed mildwonkey closed 1 year ago

mildwonkey commented 1 year ago

In this example, the thema CLI generated the go types and bindings with no error, but calling the generated Lineage() function gives an error:

schema 0.1 is not backwards compatible with schema 0.0:
required field is optional in subsumed value: header
value not an instance

The CLI commands should return the same error (and refuse to generate the code) (or otherwise be replaced)

Repro here: https://github.com/mildwonkey/thema-examples/tree/main/cli-errors

It's likely enough that this is a symptom of some other issue - we have a few reports of unclear and swallowed errors - do what you will with this issue. 😁

mildwonkey commented 1 year ago

false alarm! I'm getting the expected error on the command line after a fresh build of the CLI ❤️