From d97e914bc6f2e45df2ae8b8adb715b0e9ffb8ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 12 Mar 2024 17:44:05 +0000 Subject: [PATCH] doc/tutorial: skip module.cue as a golden file to avoid churn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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í Change-Id: Ib250a127f952f219e3336e23bd64440205341c96 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1178190 TryBot-Result: CUEcueckoo Unity-Result: CUE porcuepine Reviewed-by: Paul Jolly --- doc/tutorial/kubernetes/quick/cue.mod/module.cue | 4 ---- doc/tutorial/kubernetes/tut_test.go | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 doc/tutorial/kubernetes/quick/cue.mod/module.cue diff --git a/doc/tutorial/kubernetes/quick/cue.mod/module.cue b/doc/tutorial/kubernetes/quick/cue.mod/module.cue deleted file mode 100644 index 8cd7b41fb..000000000 --- a/doc/tutorial/kubernetes/quick/cue.mod/module.cue +++ /dev/null @@ -1,4 +0,0 @@ -module: "" -language: { - version: "v0.8.0-alpha.5" -} diff --git a/doc/tutorial/kubernetes/tut_test.go b/doc/tutorial/kubernetes/tut_test.go index 1418be555..1525e8a49 100644 --- a/doc/tutorial/kubernetes/tut_test.go +++ b/doc/tutorial/kubernetes/tut_test.go @@ -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) @@ -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 }