grafana / thema

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

CLI is not installable due to `replace` directives #197

Open jamietanna opened 6 months ago

jamietanna commented 6 months ago

Just an FYI that the recommended install route does not work:

% go install github.com/grafana/thema/cmd/thema@latest
go: downloading github.com/grafana/thema v0.0.0-20230926104747-067284b336bb
thema
go: github.com/grafana/thema/cmd/thema@latest (in github.com/grafana/thema@v0.0.0-20230926104747-067284b336bb):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

Related: https://www.jvt.me/posts/2023/09/20/go-mod-fork-gotcha/

This should be straightforward enough to fix by updating https://github.com/grafana/cue/blob/971951014e3ffb3787af98614f57977d2365f104/go.mod#L1 to be the new module import path (but may require code changes as we're no longer using the Cue imports)

malcolmholmes commented 6 months ago

We are no longer actively using or maintaining Thema. If you need the change or rely on this repo, I'd suggest forking it and letting us know.

jamietanna commented 6 months ago

Good to know, thank you!

(I came here via https://github.com/cue-lang/cue/issues/929#issuecomment-1424072066)

verdverm commented 6 months ago

@jamietanna If you are adventurous, I added some stuff to hof that forms the building block to implementing similar capabilities. Notably, the ability to checkpoint, diff, and produce the entire history of a data model as a json object. My plan is to build on top of this to generate the code that would implement the ideas here.

https://docs.hofstadter.io/getting-started/data-layer/