diff --git a/content/en/docs/references/spec.md b/content/en/docs/references/spec.md index 21a8a8bf3c..f66bbf87fd 100644 --- a/content/en/docs/references/spec.md +++ b/content/en/docs/references/spec.md @@ -1171,9 +1171,9 @@ A dynamic field may be marked as optional or required. ``` Expression Result -a: "foo a: "foo" +a: "foo" a: "foo" b: "bar" b: "bar" -(a): "baz" bar: "baz" +(a): "baz" foo: "baz" (a+b): "qux" foobar: "qux" @@ -2630,7 +2630,7 @@ LetClause = "let" identifier "=" Expression . ``` a: [1, 2, 3, 4] -b: [ for x in a if x > 1 { x+1 } ] // [3, 4, 5] +b: [for x in a if x > 1 { x+1 }] // [3, 4, 5] c: { for x in a diff --git a/content/en/docs/tutorials/kubernetes.md b/content/en/docs/tutorials/kubernetes.md index 0e3019a32e..4cb758c17d 100644 --- a/content/en/docs/tutorials/kubernetes.md +++ b/content/en/docs/tutorials/kubernetes.md @@ -1,4 +1,4 @@ --- type: redirect -redirectURL: https://github.com/cue-lang/cue/blob/v0.6.0/doc/tutorial/kubernetes/README.md +redirectURL: https://github.com/cue-lang/cue/blob/v0.7.0/doc/tutorial/kubernetes/README.md --- \ No newline at end of file diff --git a/content/en/docs/tutorials/tour/expressions/coalesce.md b/content/en/docs/tutorials/tour/expressions/coalesce.md index 8dc819409f..cef0d26539 100644 --- a/content/en/docs/tutorials/tour/expressions/coalesce.md +++ b/content/en/docs/tutorials/tour/expressions/coalesce.md @@ -7,10 +7,10 @@ layout = "tutorial" +++ @@ -33,7 +33,7 @@ the result is not of the desired type. coalesce.cue
{{< highlight go >}} -list: [ "Cat", "Mouse", "Dog" ] +list: ["Cat", "Mouse", "Dog"] a: *list[0] | "None" b: *list[5] | "None" diff --git a/content/en/docs/tutorials/tour/expressions/fieldcomp.md b/content/en/docs/tutorials/tour/expressions/fieldcomp.md index a425ed723f..5d53ddaa75 100644 --- a/content/en/docs/tutorials/tour/expressions/fieldcomp.md +++ b/content/en/docs/tutorials/tour/expressions/fieldcomp.md @@ -19,7 +19,7 @@ Instead, one must use indexing. {{< highlight go >}} import "strings" -#a: [ "Barcelona", "Shanghai", "Munich" ] +#a: ["Barcelona", "Shanghai", "Munich"] for k, v in #a { "\( strings.ToLower(v) )": { diff --git a/content/en/docs/tutorials/tour/expressions/listcomp.md b/content/en/docs/tutorials/tour/expressions/listcomp.md index 5ef74e57cc..1be189e29f 100644 --- a/content/en/docs/tutorials/tour/expressions/listcomp.md +++ b/content/en/docs/tutorials/tour/expressions/listcomp.md @@ -16,7 +16,7 @@ The example shows the use of `for` loops and `if` guards. listcomp.cue
{{< highlight go >}} -[ for x in #items if x rem 2 == 0 { x*x } ] +[for x in #items if x rem 2 == 0 { x*x }] #items: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] diff --git a/content/en/docs/tutorials/tour/intro/validation.md b/content/en/docs/tutorials/tour/intro/validation.md index d6accd4537..3e910e470b 100644 --- a/content/en/docs/tutorials/tour/intro/validation.md +++ b/content/en/docs/tutorials/tour/intro/validation.md @@ -43,7 +43,7 @@ languages: {{< highlight txt >}} languages.1.name: invalid value "dutch" (out of bound =~"^\\p{Lu}"): ./schema.cue:3:8 - ./data.yaml:5:12 + ./data.yaml:5:11 {{< /highlight >}} \ No newline at end of file diff --git a/content/en/pkg.go.dev.md b/content/en/pkg.go.dev.md index 17eb785a9c..85fee4ff53 100644 --- a/content/en/pkg.go.dev.md +++ b/content/en/pkg.go.dev.md @@ -1,4 +1,4 @@ --- type: redirect -redirectURL: https://pkg.go.dev/cuelang.org/go@v0.6.0 +redirectURL: https://pkg.go.dev/cuelang.org/go@v0.7.0 --- \ No newline at end of file diff --git a/go.mod b/go.mod index 4b8893b2cc..e0e2d6638d 100644 --- a/go.mod +++ b/go.mod @@ -3,19 +3,19 @@ module github.com/cue-lang/cuelang.org go 1.20 require ( - cuelang.org/go v0.6.0 + cuelang.org/go v0.7.0 github.com/apex/gateway v1.1.2 github.com/aws/aws-lambda-go v1.32.1 github.com/rogpeppe/testscript v1.1.0 - golang.org/x/mod v0.9.0 + golang.org/x/mod v0.13.0 ) require ( - github.com/cockroachdb/apd/v3 v3.2.0 // indirect + github.com/cockroachdb/apd/v3 v3.2.1 // indirect github.com/google/uuid v1.2.0 // indirect github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect github.com/pkg/errors v0.9.1 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/text v0.8.0 // indirect + golang.org/x/net v0.16.0 // indirect + golang.org/x/text v0.13.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 129a750b96..be27fe194e 100644 --- a/go.sum +++ b/go.sum @@ -1,19 +1,20 @@ -cuelang.org/go v0.6.0 h1:dJhgKCog+FEZt7OwAYV1R+o/RZPmE8aqFoptmxSWyr8= -cuelang.org/go v0.6.0/go.mod h1:9CxOX8aawrr3BgSdqPj7V0RYoXo7XIb+yDFC6uESrOQ= +cuelabs.dev/go/oci/ociregistry v0.0.0-20231103182354-93e78c079a13 h1:zkiIe8AxZ/kDjqQN+mDKc5BxoVJOqioSdqApjc+eB1I= +cuelang.org/go v0.7.0 h1:gMztinxuKfJwMIxtboFsNc6s8AxwJGgsJV+3CuLffHI= +cuelang.org/go v0.7.0/go.mod h1:ix+3dM/bSpdG9xg6qpCgnJnpeLtciZu+O/rDbywoMII= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/apex/gateway v1.1.2 h1:OWyLov8eaau8YhkYKkRuOAYqiUhpBJalBR1o+3FzX+8= github.com/apex/gateway v1.1.2/go.mod h1:AMTkVbz5u5Hvd6QOGhhg0JUrNgCcLVu3XNJOGntdoB4= github.com/aws/aws-lambda-go v1.17.0/go.mod h1:FEwgPLE6+8wcGBTe5cJN3JWurd1Ztm9zN4jsXsjzKKw= github.com/aws/aws-lambda-go v1.32.1 h1:ls0FU8Mt7ayJszb945zFkUfzxhkQTli8mpJstVcDtCY= github.com/aws/aws-lambda-go v1.32.1/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM= -github.com/cockroachdb/apd/v3 v3.2.0 h1:79kHCn4tO0VGu3W0WujYrMjBDk8a2H4KEUYcXf7whcg= -github.com/cockroachdb/apd/v3 v3.2.0/go.mod h1:klXJcjp+FffLTHlhIG69tezTDvdP065naDsHzKhYSqc= +github.com/cockroachdb/apd/v3 v3.2.1 h1:U+8j7t0axsIgvQUqthuNm82HIrYXodOV2iWLWtEaIwg= +github.com/cockroachdb/apd/v3 v3.2.1/go.mod h1:klXJcjp+FffLTHlhIG69tezTDvdP065naDsHzKhYSqc= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emicklei/proto v1.10.0 h1:pDGyFRVV5RvV+nkBK9iy3q67FBy9Xa7vwrOTE+g5aGw= -github.com/go-quicktest/qt v1.100.0 h1:I7iSLgIwNp0E0UnSvKJzs7ig0jg/Iq83zsZjtQNW7jY= +github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -26,12 +27,14 @@ github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto= github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de/go.mod h1:kJun4WP5gFuHZgRjZUWWuH1DTxCtxbHDOIJsudS8jzY= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/image-spec v1.1.0-rc4 h1:oOxKUJWnFC4YGHCCMNql1x4YaDfYBTS5Y4x/Cgeo1E0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/protocolbuffers/txtpbfmt v0.0.0-20230328191034-3462fbc510c0 h1:sadMIsgmHpEOGbUs6VtHBXRR1OHevnj7hLx9ZcdNGW4= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.11.1-0.20231026093722-fa6a31e0812c h1:fPpdjePK1atuOg28PXfNSqgwf9I/qD1Hlo39JFwKBXk= github.com/rogpeppe/testscript v1.1.0 h1:NxTsoOBQ1zibxf6NDtzrjPbK56hDAteIcOTSINZHtow= github.com/rogpeppe/testscript v1.1.0/go.mod h1:lzMlnW8LS56mcdJoQYkrlzqOoTFCOemzt5LusJ93bDM= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -43,14 +46,14 @@ github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8 github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.16.0 h1:7eBu7KsSvFDtSXUIDbh3aqlK4DPsZ1rByC8PFfBThos= +golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=