Skip to content

Commit

Permalink
doc/tutorial: skip module.cue as a golden file to avoid churn
Browse files Browse the repository at this point in the history
Otherwise we need to update this file every time we bump
cmd/cue's fallbackVersion, such as for v0.8.0-rc.1.
Ultimately, tracking the contents of this file does not matter.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ib250a127f952f219e3336e23bd64440205341c96
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1178190
TryBot-Result: CUEcueckoo <cueckoo@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.io>
  • Loading branch information
mvdan committed Mar 13, 2024
1 parent e529ce6 commit d97e914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions doc/tutorial/kubernetes/quick/cue.mod/module.cue

This file was deleted.

6 changes: 6 additions & 0 deletions doc/tutorial/kubernetes/tut_test.go
Expand Up @@ -225,6 +225,9 @@ func TestTutorial(t *testing.T) {
}

err = filepath.WalkDir(dir, func(path string, entry fs.DirEntry, err error) error {
if filepath.Base(path) == "module.cue" {
return nil // avoid language.version noise
}
if isCUE(path) {
dst := path[len(dir)+1:]
err := os.MkdirAll(filepath.Dir(dst), 0755)
Expand All @@ -246,6 +249,9 @@ func TestTutorial(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if filepath.Base(path) == "module.cue" {
return nil // avoid language.version noise
}
if filepath.Ext(path) != ".cue" {
return nil
}
Expand Down

0 comments on commit d97e914

Please sign in to comment.