commit | 60b4d91a32ff45aa673b4c6b6fcf451568585bdf | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Thu Jan 16 16:48:03 2020 +0100 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Thu Jan 16 15:49:43 2020 +0000 |
tree | 9e2c7e68323e07a3259acdc24b47f43876cc15e8 | |
parent | 2db865df16a5dbc3d01337a1d1dc0aba522f3fb9 [diff] [blame] |
encoding/jsonschema: fix Windows path issue Change-Id: I4cb283855e9348bb9fe2d86f6fbbb537d3a938aa Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4666 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/jsonschema/decode.go b/encoding/jsonschema/decode.go index dff0cc7..84d7ed8 100644 --- a/encoding/jsonschema/decode.go +++ b/encoding/jsonschema/decode.go
@@ -21,6 +21,7 @@ import ( "fmt" "path" + "path/filepath" "sort" "strings" @@ -68,7 +69,7 @@ var a []ast.Decl - name := filename + name := filepath.ToSlash(filename) if state.id != "" { name = strings.Trim(name, "#") }