From f524c7b17dff1dd4bf494327ed2fd6c44b4682da Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Mon, 12 Feb 2024 21:02:04 +0000 Subject: [PATCH] docs/tutorial: add cue version to custom modules registry guide Confirm the version of cmd/cue we are using at the top of the doc, to re-emphasise the requirement of a specific CUE version. Fixes cue-lang/cue#2813. Signed-off-by: Paul Jolly Change-Id: If9bad4a6b34cf7397b600059ac5d4a7ed175eb8b Dispatch-Trailer: {"type":"trybot","CL":1176783,"patchset":1,"ref":"refs/changes/83/1176783/1","targetBranch":"alpha"} --- .../working-with-a-custom-module-registry/en.md | 7 +++++++ .../gen_cache.cue | 11 ++++++++++- .../working-with-a-custom-module-registry/index.md | 8 ++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/content/docs/tutorial/working-with-a-custom-module-registry/en.md b/content/docs/tutorial/working-with-a-custom-module-registry/en.md index 489facdb0..6f38e215e 100644 --- a/content/docs/tutorial/working-with-a-custom-module-registry/en.md +++ b/content/docs/tutorial/working-with-a-custom-module-registry/en.md @@ -50,6 +50,13 @@ This tutorial describes an experimental feature. All details are subject to chan ([Constraints]({{< relref "/docs/tour/basics/constraints" >}}) and [Definitions]({{< relref "/docs/tour/basics/definitions" >}}) in the CUE tour) +This tutorial is written using the following version of `cmd/cue`: + +{{{with script "en" "cue version"}}} +#ellipsis 1 +cue version +{{{end}}} + ## Create the module for the schema code In this tutorial we will focus on an imaginary application called `FrostyApp`, diff --git a/content/docs/tutorial/working-with-a-custom-module-registry/gen_cache.cue b/content/docs/tutorial/working-with-a-custom-module-registry/gen_cache.cue index 693388383..5c0649388 100644 --- a/content/docs/tutorial/working-with-a-custom-module-registry/gen_cache.cue +++ b/content/docs/tutorial/working-with-a-custom-module-registry/gen_cache.cue @@ -15,7 +15,7 @@ package site "edit-dependency-version": "20qyCFMqHE2OqhL8ILndmu3pTkvbwoZaZgEuUzHRo0g=" } multi_step: { - "RF9RTOT7E9BUKIOV1MSPV8OJ12NNE464ANK1JVV93T24V3PSTRQ0====": [{ + "PKVFEO88AACRG7VKMSL437H9D6CKEMVDH1CD3APPHB0PDA99Q3O0====": [{ doc: """ # TODO: this is inherently racey. But not a problem in practice... # for now. When it does become a problem we can solve this properly @@ -24,6 +24,15 @@ package site cmd: "nohup cue mod registry localhost:5000 >/tmp/cue_mod_registry 2>&1 &" exitCode: 0 output: "" + }, { + doc: "#ellipsis 1" + cmd: "cue version" + exitCode: 0 + output: """ + cue version v0.8.0-0.dev.0.20240210175433-b460e71a6f24 + ... + + """ }, { doc: "" cmd: "mkdir frostyconfig" diff --git a/hugo/content/en/docs/tutorial/working-with-a-custom-module-registry/index.md b/hugo/content/en/docs/tutorial/working-with-a-custom-module-registry/index.md index c585a4cb1..77c6e7e0e 100644 --- a/hugo/content/en/docs/tutorial/working-with-a-custom-module-registry/index.md +++ b/hugo/content/en/docs/tutorial/working-with-a-custom-module-registry/index.md @@ -43,6 +43,14 @@ This tutorial describes an experimental feature. All details are subject to chan ([Constraints]({{< relref "/docs/tour/basics/constraints" >}}) and [Definitions]({{< relref "/docs/tour/basics/definitions" >}}) in the CUE tour) +This tutorial is written using the following version of `cmd/cue`: + +```text { title="TERMINAL" codeToCopy="Y3VlIHZlcnNpb24K" } +$ cue version +cue version v0.8.0-0.dev.0.20240210175433-b460e71a6f24 +... +``` + ## Create the module for the schema code In this tutorial we will focus on an imaginary application called `FrostyApp`,