Make validate-schema CLI command work vs. disk (#36863)

* Make validate-schema CLI command work vs. disk

Previously, `grafana-cli cue validate-schema` would only validate the
CUE files that had been included at compile time. Now, the command
requires passing a grafana checkout root path, and will actually check
against live files on disk.

* Exempt validateScuemata from sec linter

* Nit: validateScuemata is a simpler, better name

* Try to fix validate-scuemata build step
This commit is contained in:
sam boyer
2021-07-16 19:53:19 -04:00
committed by GitHub
parent dd11e232d0
commit cae47b3c1c
4 changed files with 74 additions and 15 deletions
+1 -1
View File
@@ -1076,6 +1076,6 @@ def validate_scuemata():
'build-backend',
],
'commands': [
'./bin/linux-amd64/grafana-cli cue validate-schema',
'./bin/linux-amd64/grafana-cli cue validate-schema --grafana-root .',
],
}