mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
4d0e309d4e
commit
f9b5dbb473
@ -56,7 +56,13 @@ func (j *lmox) Generate(kind kindsys.Kind) (codejen.Files, error) {
|
||||
}
|
||||
|
||||
var fl codejen.Files
|
||||
major := -1
|
||||
for sch := kind.Lineage().First(); sch != nil; sch = sch.Successor() {
|
||||
if int(sch.Version()[0]) == major {
|
||||
continue
|
||||
}
|
||||
major = int(sch.Version()[0])
|
||||
|
||||
sfg.Schema = sch.LatestInMajor()
|
||||
files, err := do(sfg, fmt.Sprintf("v%v", sch.Version()[0]))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user