[Scuemeta] Fix cue schema load on windows (#35185)

* fix the load basic schema

* fix windows unittest

* fix error return for get current path

* fix windows notation
This commit is contained in:
ying-jeanne
2021-06-07 18:58:47 +08:00
committed by GitHub
parent ce513e4637
commit edf2029b52
7 changed files with 29 additions and 12 deletions
-1
View File
@@ -63,7 +63,6 @@ func toOverlay(prefix string, vfs fs.FS, overlay map[string]load.Source) error {
if !filepath.IsAbs(prefix) {
return fmt.Errorf("must provide absolute path prefix when generating cue overlay, got %q", prefix)
}
err := fs.WalkDir(vfs, ".", (func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err