Skip to content

Commit

Permalink
cue/testdata: replace spaces in txtar file names
Browse files Browse the repository at this point in the history
These seem to break the CI build on Windows. Rename all testdata files
to use underscores instead of spaces and colons.

Closes #374
cuelang/cue#374

GitOrigin-RevId: 2be93917e9c4dd20c209229fd6b3823476475b65
Change-Id: I32abc9263950dcf4c04099ea800714ddd8924a28
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5880
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
tklauser authored and mpvl committed May 6, 2020
1 parent 0d4abd7 commit 7491622
Show file tree
Hide file tree
Showing 99 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion cue/testdata/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ func (e *extractor) extractTest(x *ast.CompositeLit) {
if e.name != "" {
name += "_" + e.name
}
// name = strings.ReplaceAll(name, " ", "_")
name = strings.ReplaceAll(name, " ", "_")
name = strings.ReplaceAll(name, ":", "_")
filename := filepath.Join(e.dir, name+".txtar")
err := ioutil.WriteFile(filename, txtar.Format(e.a), 0644)
if err != nil {
Expand Down
File renamed without changes.

0 comments on commit 7491622

Please sign in to comment.