Skip to content

Commit

Permalink
Bump the cue version to 0.9.2 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitanyareddy0702 authored Aug 22, 2024
1 parent 126b025 commit cff51a3
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 73 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
kubebuilderOnly: false
kubernetesVersion: v1.22.0


- name: Run unit-test
run: make unit-test

Expand Down
22 changes: 11 additions & 11 deletions cue/cuex/model/sets/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lacy: string
lacy: string
`},
{
s: `
s: `
if true {
foo: int
}
Expand All @@ -59,7 +59,7 @@ lacy: string
foo: int
`},
{
s: `
s: `
foo: int
if foo>5{
lacy: "=5"
Expand Down Expand Up @@ -187,7 +187,7 @@ parameter: {
}
wait: {
_status: true
_status: true
continue: script(parameter.continue)
}
Expand All @@ -201,7 +201,7 @@ parameter: {
}
wait: {
_status: true
_status: true
if parameter.continue!=_|_{
continue: script(parameter["continue"])
}
Expand Down Expand Up @@ -257,13 +257,13 @@ bottom: _|_
val := cuecontext.New().BuildFile(f)
s, err := toString(val)
r.NoError(err)
r.Equal(s, `a: *10 | _
a1: int
b: *"foo" | _
b1: string
c: *true | _
c1: bool
arr: *[1, 2] | [...]
r.Equal(s, `a: *10 | _
a1: int
b: *"foo" | _
b1: string
c: *true | _
c1: bool
arr: *[1, 2] | [...]
top: _
bottom: _|_ // explicit error (_|_ literal) in source
`)
Expand Down
6 changes: 3 additions & 3 deletions cue/util/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func TestToRawString(t *testing.T) {
// +usage=x
param: {
// test comment
key: *"key" | string
val: int & >=0
key: *"key" | string
val: int & >=0
loop: *[1, 2, 3] | [...int]
if val > 1 {
loop: [2, 4, 6]
}
r: [ for i in loop {
r: [for i in loop {
strconv.FormatInt(i)
}]
}`
Expand Down
32 changes: 15 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module github.com/kubevela/pkg
go 1.22

require (
cuelang.org/go v0.5.0
cuelang.org/go v0.9.2
github.com/emicklei/go-restful/v3 v3.9.0
github.com/evanphx/json-patch v4.12.0+incompatible
github.com/go-stack/stack v1.8.1
github.com/google/go-cmp v0.5.9
github.com/google/go-cmp v0.6.0
github.com/jellydator/ttlcache/v3 v3.0.1
github.com/klauspost/compress v1.16.3
github.com/mitchellh/hashstructure/v2 v2.0.2
Expand All @@ -16,7 +16,7 @@ require (
github.com/onsi/gomega v1.27.5
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.14.0
github.com/spf13/cobra v1.6.1
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.0
go.uber.org/automaxprocs v1.5.3
Expand All @@ -40,7 +40,7 @@ require (
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand All @@ -63,11 +63,11 @@ require (
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
Expand All @@ -76,7 +76,6 @@ require (
github.com/matttproud/golang_protobuf_extensions v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/openshift/library-go v0.0.0-20230327085348-8477ec72b725 // indirect
Expand All @@ -101,18 +100,17 @@ require (
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.7.0 // indirect
golang.org/x/tools v0.21.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/grpc v1.53.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
Expand Down
Loading

0 comments on commit cff51a3

Please sign in to comment.