Skip to content

Commit

Permalink
docs/tutorial: add cue version to custom modules registry guide
Browse files Browse the repository at this point in the history
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 <[email protected]>
Change-Id: If9bad4a6b34cf7397b600059ac5d4a7ed175eb8b
Dispatch-Trailer: {"type":"trybot","CL":1176783,"patchset":1,"ref":"refs/changes/83/1176783/1","targetBranch":"alpha"}
  • Loading branch information
myitcv authored and cueckoo committed Feb 12, 2024
1 parent 205a271 commit f524c7b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit f524c7b

Please sign in to comment.