Make "dist" version of dashboard scuemata directly importable in CUE (#39251)

* Update embeds with new paths, remove deprefixing

* Add dist dashboard scuemata, in CUE

Also add tests that ensure all panel plugins with models.cue are
imported by this file, so that we can't go out of sync.

* Remove comment detritus

* Check error return

* Remove hardcoded path prefix from cli validator
This commit is contained in:
sam boyer
2021-09-17 16:17:55 -04:00
committed by GitHub
parent e1aae0549e
commit 39f2ee7692
4 changed files with 94 additions and 7 deletions
@@ -63,7 +63,7 @@ func (cmd Command) validateScuemata(c utils.CommandLine) error {
if err != nil {
return err
}
fspaths.DistPluginCueFS, err = populate(paths.DistPluginCueFS, "public/app/plugins")
fspaths.DistPluginCueFS, err = populate(paths.DistPluginCueFS, "")
if err != nil {
return err
}