Tags: cue-lang/cue
Tags
internal/ci: bump Go version for v0.13.1 Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Ice9663d2c2771a42446414d18a30b2830d49a532 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1216731 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
internal/mod/modfiledata: factor out of mod/modfile We'd like the `build.Instance` returned by `load.Instances` to be able to contain the module file current to that instance, but currently that's not possible because the `cue` package depends on `cue/build` and the `modfile` package depends on the `cue` package so there would be an illegal cyclic dependency from doing that. To work around that, we factor out the data-only `modfile.File` type into its own `modfiledata` package, so it's possible to depend on the module file data without having a dependency on the evaluator itself. In the process, we avoid storing `actualSchemaVersion` in the struct because it's actually only used as part of `Format` and not anywhere else; this avoids the need for a public accessor in the `File` type. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Idf08de5f146a9f57b6fd5c9f11f2c56648ea6ade Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215651 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Matthew Sackman <matthew@cue.works>
internal/ci: bump the pinned Go version for releases Ahead of v0.13.0. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Icd839c0bf91338d93bc2bd3329b66e5e8319c458 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215667 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
cmd/cue: add CUE_EXPERIMENT=cmdreferencepkg When enabled, `cue cmd` tasks must be defined by referencing a task from one of the tool packages, and trying to define a task directly by only defining `kind` or `$id` will not work. The experiment is disabled by default for v0.13 as it is very late in the release cycle and too many users would be broken with too little notice. We plan to flip the default for v0.14. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I246acf526910b1486ab9c41b96abe56dd1980eab Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214987 Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
internal/ci: bump Go and goreleaser for the next alpha release As usual, none of the goreleaser deprecations affect us. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I25acd939ed4946b8d3bb706778d6e7d58fae6743 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214051 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
internal/ci: test and release on Go 1.24 Our stable release binaries need to be built with the latest major version of Go, as otherwise users will see version incompatibility errors when trying to use `cue get go` with the latest Go toolchain. We also disable staticcheck at this point, given that the pinned version does not support Go 1.24 yet, and updating staticcheck to get newer warnings is not something we want to do in backporting release branches; we already do that in master. Updates #3868. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I8f18f117d4148a9bb93712a4fcc25192748eeee8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1212810 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
update golang.org/x dependencies Before the next alpha release. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I2b7da474c053b2d589572acc2ef328631c9039c4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1212513 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Matthew Sackman <matthew@cue.works>
internal/core/adt: add indirection in some cases When a previously registered node is involved in an embedding, we always allocate a new node and add the original node to the set. Not doing so will means that an embedding group will not be marked as excluded. This was worked around with a hack in injectEmbedNode. This has been removed. This fixes exposed some issues in the API that are addressed here as well to prevent breakages. We need to ensure that embeddings do not open across conjuncts passed to Unify. This mechanism makes the TopRef mechanism redundant and this has been removed as part of this change. Fixes #3839 Fixes #3826 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: If2b7ba647e2b7d0e99f906b08a7e76d3d2d7ba43 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1212144 Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
encoding/jsonschema: support x-kubernetes-embedded-resource This adds initial support for the "x-kubernetes-embedded-resource" keyword. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#rawextension Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Ifdf199380fe24bbd7fcf8df1b5bb87faab4d226a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211212 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Unity-Result: CUE porcuepine <cue.porcuepin 5625 e@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
internal/cueversion: bump LanguageVersion for v0.13 We are now developing master towards the next feature release. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: If6dc99bb4a0a76e859a7543910eadc6c9df92af3 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1208025 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Matthew Sackman <matthew@cue.works>
PreviousNext