From f9eb7076490d545a0f83f2745920b89d3a9f0c3a 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 Dispatch-Trailer: {"type":"trybot","CL":1178190,"patchset":1,"ref":"refs/changes/90/1178190/1","targetBranch":"master"} --- 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 }