Codegen: Isolate schema generation code (#98742)
* Create go.mod files for plugins and core kinds * Update go work and main go.mod dependencies * Update pfs import * Missing update of pfs dependency * Remove fixed cuelang dependency * Update codeowners * Update workspace * Update Dockerfile * Missing go.mod codeowner * Use intermediate kin-openapi dependency to make all workspaces to work
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
// indicates the import path should be dropped in the conversion to TS. Imports
|
||||
// not present in the list are not allowed, and code generation will fail.
|
||||
var importMap = map[string]string{
|
||||
"github.com/grafana/grafana/pkg/plugins/pfs": "",
|
||||
"github.com/grafana/grafana/pkg/plugins/codegen/pfs": "",
|
||||
"github.com/grafana/grafana/packages/grafana-schema/src/common": "@grafana/schema",
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func init() {
|
||||
// Grafana kind definitions.
|
||||
func PermittedCUEImports() []string {
|
||||
return []string{
|
||||
"github.com/grafana/grafana/pkg/plugins/pfs",
|
||||
"github.com/grafana/grafana/pkg/plugins/codegen/pfs",
|
||||
"github.com/grafana/grafana/packages/grafana-schema/src/common",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user