kindsys: Make kind generators run in Windows (#58794)

This commit is contained in:
Yuri Tseretyan
2022-11-16 09:21:11 -05:00
committed by GitHub
parent 5d73f7f8e8
commit 332630c2e0
2 changed files with 6 additions and 14 deletions
+4 -11
View File
@@ -8,10 +8,11 @@ import (
"cuelang.org/go/cue"
"cuelang.org/go/cue/errors"
"github.com/grafana/grafana"
"github.com/grafana/grafana/pkg/cuectx"
"github.com/grafana/thema"
tload "github.com/grafana/thema/load"
"github.com/grafana/grafana"
"github.com/grafana/grafana/pkg/cuectx"
)
// CoreStructuredDeclParentPath is the path, relative to the repository root, where
@@ -54,15 +55,7 @@ func doLoadFrameworkCUE(ctx *cue.Context) (cue.Value, error) {
var v cue.Value
var err error
absolutePath := prefix
if !filepath.IsAbs(absolutePath) {
absolutePath, err = filepath.Abs(absolutePath)
if err != nil {
return v, err
}
}
bi, err := tload.InstancesWithThema(grafana.CueSchemaFS, absolutePath)
bi, err := tload.InstancesWithThema(grafana.CueSchemaFS, prefix)
if err != nil {
return v, err
}