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

* 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

(cherry picked from commit 39f2ee7692)

Co-authored-by: sam boyer <sam.boyer@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-09-17 17:14:36 -04:00
committed by GitHub
co-authored by sam boyer
parent b21ba77c4f
commit 704ba385aa
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
}