Skip to content

Commit

Permalink
site: upgrade latest CUE to v0.11.0
Browse files Browse the repository at this point in the history
This upgrades the latest, default version of CUE demonstrated on most
pages from v0.10.1 to v0.11.0 via site.cue.

The site's prerelease CUE version is aligned with the latest version,
also in site.cue. Pages that accessed a prerelease version are manually
moved back to the latest version; they are discovered with:

    git grep CUELANG_CUE_PRERELEASE content

The patch at internal/patch/tip.diff is applied in this change, as it
prepared this repo for the "next" release of CUE - which is now the
version being used. The patch file is emptied, but left in place
anticipating a similar requirement for some patch in the future.

The playground's Go module dependency on CUE is manually upgraded:

    go -C playground get cuelang.org/[email protected]
    go -C playground mod tidy

Along with these changes, the result of running
_scripts/regenPostInfraChange.bash is split into 2 commits: this change,
and the next change which captures updates to the preprocessor's cache
files.

We do, however, pull "forward" one cache update:

    content/docs/howto/log-statistics-from-the-cue-evaluator/gen_cache.cue

This particular script uses comparators to determine, in the cache of a
non-script cache miss, whether to write a new version of the page or
not. This generally helps to ensure that we don't rewrite the output
page where, on pages like this, the output is unstable. In this case, we
do have a non-script cache miss, the script is a cache hit, but the
output post-normalisation of the comparators is _not_ identical, because
of the addition of a field (look at the above file as part of this CL).
Hence a new version of the page output is written every time, because
there is a cache miss, even modulo the comparators normalisation. We can
"fix" this however, by pulling forward the fixing of the cache for this
page from the next CL. Ultimately we need a better fix here, but that's
not for now.

Preprocessor-No-Write-Cache: true
Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: Ibb42324c8fd22f06907111659e9d04a6160f9002
Dispatch-Trailer: {"type":"trybot","CL":1204275,"patchset":7,"ref":"refs/changes/75/1204275/7","targetBranch":"master"}
  • Loading branch information
jpluscplusm authored and cueckoo committed Nov 20, 2024
1 parent 3a55072 commit 7a427a7
Show file tree
Hide file tree
Showing 67 changed files with 187 additions and 282 deletions.
2 changes: 1 addition & 1 deletion _scripts/tipPatchApply.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ then
fi

# --index: working tree and index must be identical.
git apply --index $patchPath
git apply --index $patchPath --allow-empty
4 changes: 2 additions & 2 deletions content/docs/concept/how-cue-works-with-json/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ item: table: #"{ "width": "34", "height": 23, "depth": 0.2 }"#
// painting's height field name is incorrectly upper-cased.
item: painting: #"{ "width": 34, "HEIGHT": 12, "depth": 0.2 }"#
-- out --
item.painting: invalid value "{ \"width\": 34, \"HEIGHT\": 12, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate({width:number,depth:number,height:number})): error in call to encoding/json.Validate: field not allowed:
item.painting: invalid value "{ \"width\": 34, \"HEIGHT\": 12, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: field not allowed:
./furniture.cue:10:17
./furniture.cue:3:14
./furniture.cue:17:17
json.Validate:1:1
json.Validate:1:16
item.table: invalid value "{ \"width\": \"34\", \"height\": 23, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate({width:number,depth:number,height:number})): error in call to encoding/json.Validate: conflicting values number and "34" (mismatched types number and string):
item.table: invalid value "{ \"width\": \"34\", \"height\": 23, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: conflicting values number and "34" (mismatched types number and string):
./furniture.cue:10:17
./furniture.cue:4:10
./furniture.cue:15:14
Expand Down
4 changes: 2 additions & 2 deletions content/docs/concept/how-cue-works-with-yaml/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ item: painting: """
depth: 0.2
"""
-- out --
item.painting: invalid value "width: 34\nHEIGHT: 12\ndepth: 0.2" (does not satisfy encoding/yaml.Validate({width:number,depth:number,height:number})): error in call to encoding/yaml.Validate: field not allowed:
item.painting: invalid value "width: 34\nHEIGHT: 12\ndepth: 0.2" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: field not allowed:
./furniture.cue:10:17
./furniture.cue:3:14
./furniture.cue:25:17
yaml.Validate:2:1
item.table: invalid value "width: \"34\"\nheight: 23\ndepth: 0.2" (does not satisfy encoding/yaml.Validate({width:number,depth:number,height:number})): error in call to encoding/yaml.Validate: conflicting values number and "34" (mismatched types number and string):
item.table: invalid value "width: \"34\"\nheight: 23\ndepth: 0.2" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: conflicting values number and "34" (mismatched types number and string):
./furniture.cue:10:17
./furniture.cue:4:10
./furniture.cue:19:14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Source: https://github.com/cue-labs/cue-by-example/tree/main/001_github_actions_
{{{uploaddir "_ref"}}}

{{{with _script_ "en" "cuelang.org setup"}}}
# Required because v0.10.0 suffers from https://cuelang.org/issue/3462, which
# is fixed in v0.11.0-alpha.2 and later.
export PATH=/cues/$CUELANG_CUE_PRERELEASE:$PATH

# Required to interact with the central registry.
mkdir -p $HOME/.config/cue
cat <<EOD > $HOME/.config/cue/logins.json
Expand Down
4 changes: 0 additions & 4 deletions content/docs/draft/cbe-005_gitlab_ci/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Source: https://raw.githubusercontent.com/cue-labs/cue-by-example/refs/heads/mai
{{{uploaddir "_ref"}}}

{{{with _script_ "en" "cuelang.org setup"}}}
# Required because v0.10.0 suffers from https://cuelang.org/issue/3462, which
# is fixed in v0.11.0-alpha.2 and later.
export PATH=/cues/$CUELANG_CUE_PRERELEASE:$PATH

# Set up example content as a git repo.
cd gitlab
#ellipsis 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Source: https://github.com/cue-labs/cue-by-example/blob/main/006_buildkite_impor
{{{uploaddir "_ref"}}}

{{{with _script_ "en" "cuelang.org setup"}}}
# Required because v0.10.0 suffers from https://cuelang.org/issue/3462, which
# is fixed in v0.11.0-alpha.2 and later.
export PATH=/cues/$CUELANG_CUE_PRERELEASE:$PATH

# Set up example content as a git repo.
cd dependent-pipeline-example
#ellipsis 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ package site
page: {
cache: {
upload: {
file: "6vWwn8sUtf1NKuuZx8Nw1phlJQbR0OdkJTAoDfm0ypo="
file: "J1G94ytECvYEZlUQ1/ar/IpFITAU6IYEEMfiOmn039Q="
}
multi_step: {
hash: "MJHB9G90LO2GGA9480G7FJDDAALR43EKAPKPGQ7L5IH9KH6KFA6G===="
hash: "4FCBMKG21DUSDVM23MJ756G0LHA6MNE545TVPBTHH5UV3NP5HP0G===="
scriptHash: "HJ6F16PVM5R51CRIHNQVO53OFBM44DDS5QVFKQUAO2SO9APOU95G===="
steps: [{
doc: ""
Expand All @@ -28,6 +28,7 @@ package site
exitCode: 0
output: """
CUE: {
\tEvalVersion: 2
\tUnifications: 4
\tDisjuncts: 4
\tConjuncts: 4
Expand All @@ -37,8 +38,8 @@ package site
\tRetained: 0
}
Go: {
\tAllocBytes: 4439056
\tAllocObjects: 45198
\tAllocBytes: 4015312
\tAllocObjects: 42077
}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ _missingFieldSchema: {
c!: bool // NOT a validation failure
}
-- out --
data: invalid value "{\n \"a\": 1,\n \"b\": \"two\"\n}" (does not satisfy encoding/json.Validate({a!:>99,b!:string})): error in call to encoding/json.Validate: invalid value 1 (out of bound >99):
data: invalid value "{\n \"a\": 1,\n \"b\": \"two\"\n}" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: invalid value 1 (out of bound >99):
./file.cue:14:7
./file.cue:5:7
./file.cue:15:7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ _missingFieldSchema: {
c!: bool // validation failure for yaml.Validate only
}
-- out --
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate({a!:>99,b!:string})): error in call to encoding/yaml.Validate: invalid value 1 (out of bound >99):
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: invalid value 1 (out of bound >99):
./file.cue:12:7
./file.cue:5:7
./file.cue:13:7
./file.cue:16:7
./file.cue:17:7
./file.cue:20:6
yaml.Validate:1:4
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate({a!:int,b!:string,c!:bool})): error in call to encoding/yaml.Validate: field is required but not present:
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: field is required but not present:
./file.cue:13:7
./file.cue:5:7
./file.cue:12:7
./file.cue:16:7
./file.cue:17:7
./file.cue:26:2
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.ValidatePartial({a!:>99,b!:string})): error in call to encoding/yaml.ValidatePartial: invalid value 1 (out of bound >99):
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.ValidatePartial): error in call to encoding/yaml.ValidatePartial: invalid value 1 (out of bound >99):
./file.cue:16:7
./file.cue:5:7
./file.cue:12:7
Expand Down
12 changes: 7 additions & 5 deletions content/docs/tutorial/converting-json-schema-to-cue/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ package cuisine

#restaurant: {
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
name!: string
cuisine!: string
tables!: [...#table]
close({
name!: string
cuisine!: string
tables!: [...#table]
})

#table: {
#table: close({
seats!: >=2 & <=10
view?: bool
}
})
}
{{{end}}}

Expand Down
4 changes: 2 additions & 2 deletions hugo/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ images = ['img/social.png']
logo = 'svg/logo.svg'

[notification]
content = '**CUE v0.10 is now available** -- learn more about its [new features and improvements](https://github.com/cue-lang/cue/releases/tag/v0.10.0)'
type = 'cue-minor-release-v0.10'
content = '**CUE v0.11 is now available** -- learn more about its [new features and improvements](https://github.com/cue-lang/cue/releases/tag/v0.11.0)'
type = 'cue-minor-release-v0.11'

[notification.button]
icon = 'download'
Expand Down
12 changes: 6 additions & 6 deletions hugo/content/en/docs/concept/how-cue-works-with-go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func main() {

Before running, we add a dependency on the `cuelang.org/go` module and tidy:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down Expand Up @@ -236,8 +236,8 @@ age: 99
We finish by adding a dependency on the `cuelang.org/go` module, tidying,
and running the program:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHkKZ28gcnVuIC4=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHkKZ28gcnVuIC4=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down Expand Up @@ -310,8 +310,8 @@ func main() {

This time we see that CUE correctly caught a problem in our data:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHkKZ28gcnVuIC4=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHkKZ28gcnVuIC4=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/concept/how-cue-works-with-json/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ item: painting: #"{ "width": 34, "HEIGHT": 12, "depth": 0.2 }"#
{{< /code-tab >}}
{{< code-tab name="TERMINAL" language="" area="bottom" type="terminal" codetocopy="Y3VlIHZldCBmdXJuaXR1cmUuY3Vl" >}}
$ cue vet furniture.cue
item.painting: invalid value "{ \"width\": 34, \"HEIGHT\": 12, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate({width:number,depth:number,height:number})): error in call to encoding/json.Validate: field not allowed:
item.painting: invalid value "{ \"width\": 34, \"HEIGHT\": 12, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: field not allowed:
./furniture.cue:10:17
./furniture.cue:3:14
./furniture.cue:17:17
json.Validate:1:1
json.Validate:1:16
item.table: invalid value "{ \"width\": \"34\", \"height\": 23, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate({width:number,depth:number,height:number})): error in call to encoding/json.Validate: conflicting values number and "34" (mismatched types number and string):
item.table: invalid value "{ \"width\": \"34\", \"height\": 23, \"depth\": 0.2 }" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: conflicting values number and "34" (mismatched types number and string):
./furniture.cue:10:17
./furniture.cue:4:10
./furniture.cue:15:14
Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/concept/how-cue-works-with-yaml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ item: painting: """
{{< /code-tab >}}
{{< code-tab name="TERMINAL" language="" area="bottom" type="terminal" codetocopy="Y3VlIHZldCBmdXJuaXR1cmUuY3Vl" >}}
$ cue vet furniture.cue
item.painting: invalid value "width: 34\nHEIGHT: 12\ndepth: 0.2" (does not satisfy encoding/yaml.Validate({width:number,depth:number,height:number})): error in call to encoding/yaml.Validate: field not allowed:
item.painting: invalid value "width: 34\nHEIGHT: 12\ndepth: 0.2" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: field not allowed:
./furniture.cue:10:17
./furniture.cue:3:14
./furniture.cue:25:17
yaml.Validate:2:1
item.table: invalid value "width: \"34\"\nheight: 23\ndepth: 0.2" (does not satisfy encoding/yaml.Validate({width:number,depth:number,height:number})): error in call to encoding/yaml.Validate: conflicting values number and "34" (mismatched types number and string):
item.table: invalid value "width: \"34\"\nheight: 23\ndepth: 0.2" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: conflicting values number and "34" (mismatched types number and string):
./furniture.cue:10:17
./furniture.cue:4:10
./furniture.cue:19:14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ Now the file looks like:
$ head mon/prometheus/configmap.cue
package kube
import yaml656e63 "encoding/yaml"
import "encoding/yaml"
configMap: prometheus: {
apiVersion: "v1"
kind: "ConfigMap"
metadata: name: "prometheus"
data: {
"alert.rules": yaml656e63.Marshal(_cue_alert_rules)
"alert.rules": yaml.Marshal(_cue_alert_rules)
```

That looks better!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This guide demonstrates the following version:

```text { title="TERMINAL" type="terminal" codeToCopy="Y3VlIHZlcnNpb24=" }
$ cue version
cue version v0.10.1
cue version v0.11.0
...
```

Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/howto/handle-errors-go-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func main() {
{{< step stepNumber="6" >}}
Add a dependency on `cuelang.org/go` and ensure the Go module is tidy:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $ export CUE_STATS_FILE=stats.cue
$ cue vet someFile.cue
$ cat stats.cue
CUE: {
EvalVersion: 2
Unifications: 4
Disjuncts: 4
Conjuncts: 4
Expand All @@ -34,8 +35,8 @@ CUE: {
Retained: 0
}
Go: {
AllocBytes: 4439056
AllocObjects: 45198
AllocBytes: 4015312
AllocObjects: 42077
}
```

Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/howto/place-data-go-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ func main() {
{{< step stepNumber="5" >}}
Add a dependency on `cuelang.org/go` and ensure the Go module is tidy:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _missingFieldSchema: {
{{< /code-tab >}}
{{< code-tab name="TERMINAL" language="" area="bottom" type="terminal" codetocopy="Y3VlIHZldA==" >}}
$ cue vet
data: invalid value "{\n \"a\": 1,\n \"b\": \"two\"\n}" (does not satisfy encoding/json.Validate({a!:>99,b!:string})): error in call to encoding/json.Validate: invalid value 1 (out of bound >99):
data: invalid value "{\n \"a\": 1,\n \"b\": \"two\"\n}" (does not satisfy encoding/json.Validate): error in call to encoding/json.Validate: invalid value 1 (out of bound >99):
./file.cue:14:7
./file.cue:5:7
./file.cue:15:7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ _missingFieldSchema: {
{{< /code-tab >}}
{{< code-tab name="TERMINAL" language="" area="bottom" type="terminal" codetocopy="Y3VlIHZldA==" >}}
$ cue vet
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate({a!:>99,b!:string})): error in call to encoding/yaml.Validate: invalid value 1 (out of bound >99):
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: invalid value 1 (out of bound >99):
./file.cue:12:7
./file.cue:5:7
./file.cue:13:7
./file.cue:16:7
./file.cue:17:7
./file.cue:20:6
yaml.Validate:1:4
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate({a!:int,b!:string,c!:bool})): error in call to encoding/yaml.Validate: field is required but not present:
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.Validate): error in call to encoding/yaml.Validate: field is required but not present:
./file.cue:13:7
./file.cue:5:7
./file.cue:12:7
./file.cue:16:7
./file.cue:17:7
./file.cue:26:2
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.ValidatePartial({a!:>99,b!:string})): error in call to encoding/yaml.ValidatePartial: invalid value 1 (out of bound >99):
data: invalid value "a: 1\nb: \"two\"" (does not satisfy encoding/yaml.ValidatePartial): error in call to encoding/yaml.ValidatePartial: invalid value 1 (out of bound >99):
./file.cue:16:7
./file.cue:5:7
./file.cue:12:7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version of the `cue` command:

```text { title="TERMINAL" type="terminal" codeToCopy="Y3VlIHZlcnNpb24=" }
$ cue version
cue version v0.11.0-rc.1
cue version v0.11.0
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version of the `cue` command:

```text { title="TERMINAL" type="terminal" codeToCopy="Y3VlIHZlcnNpb24=" }
$ cue version
cue version v0.11.0-rc.1
cue version v0.11.0
...
```

Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/howto/validate-go-cuego/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ and prints the validation result for each instance.
{{< step stepNumber="3" >}}
Add a dependency on `cuelang.org/go` and ensure the Go module is tidy:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ single JSON file, printing the validation result to its standard output stream.

{{< step stepNumber="6" >}}
Add a dependency on `cuelang.org/go` and ensure the Go module is tidy:
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
4 changes: 2 additions & 2 deletions hugo/content/en/docs/howto/walk-schemas-using-go-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func structToType(name cue.Selector, val cue.Value) {
{{< step stepNumber="6" >}}
Add a dependency on `cuelang.org/go` and ensure the Go module is tidy:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjEwLjEKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.10.1
```text { title="TERMINAL" type="terminal" codeToCopy="Z28gZ2V0IGN1ZWxhbmcub3JnL2dvQHYwLjExLjAKZ28gbW9kIHRpZHk=" }
$ go get cuelang.org/go@v0.11.0
...
$ go mod tidy
...
Expand Down
2 changes: 1 addition & 1 deletion hugo/content/en/docs/introduction/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The latest version of the `cue` command is:

```text { title="TERMINAL" type="terminal" codeToCopy="Y3VlIHZlcnNpb24=" }
$ cue version
cue version v0.10.1
cue version v0.11.0
...
```

Expand Down
Loading

0 comments on commit 7a427a7

Please sign in to comment.