mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 11:12:58 +08:00
Kindsys: Remove defs, Slot->SchemaInterface (#61069)
* kindsys: Remove defs, Slot->SchemaInterface * Remove excess file * Fix up tests * Regenerate kinds report * Final bits of cleanup * Stop complaining, linter * Update pkg/kindsys/kindcat_composable.cue Co-authored-by: Tania <yalyna.ts@gmail.com> Co-authored-by: Tania <yalyna.ts@gmail.com>
This commit is contained in:
@ -37,7 +37,7 @@ func (j *pgoJenny) Generate(decl *pfs.PluginDecl) (*codejen.File, error) {
|
||||
}
|
||||
|
||||
pluginfolder := filepath.Base(decl.PluginPath)
|
||||
slotname := strings.ToLower(decl.Slot.Name())
|
||||
slotname := strings.ToLower(decl.SchemaInterface.Name())
|
||||
filename := fmt.Sprintf("types_%s_gen.go", slotname)
|
||||
f.RelativePath = filepath.Join(j.root, pluginfolder, filename)
|
||||
f.From = append(f.From, j)
|
||||
|
@ -40,7 +40,7 @@ func (j *ptsJenny) Generate(decl *pfs.PluginDecl) (*codejen.File, error) {
|
||||
}
|
||||
}
|
||||
|
||||
slotname := decl.Slot.Name()
|
||||
slotname := decl.SchemaInterface.Name()
|
||||
v := decl.Lineage.Latest().Version()
|
||||
|
||||
tsf.Nodes = append(tsf.Nodes, tsast.Raw{
|
||||
|
Reference in New Issue
Block a user