chore(deps): update module cuelang.org/go to v0.12.1 - autoclosed#425
Closed
renovate[bot] wants to merge 1 commit intomasterfrom
Closed
chore(deps): update module cuelang.org/go to v0.12.1 - autoclosed#425renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
8d01747 to
c938f0e
Compare
Member
|
breaking change, see #202 |
c938f0e to
609ff31
Compare
964b9dc to
fef520a
Compare
246d0bc to
2d35a3f
Compare
6d9fd8e to
282b448
Compare
282b448 to
f89cd61
Compare
6db8ad3 to
9d65d74
Compare
9d65d74 to
6424175
Compare
0b494a7 to
9ea627b
Compare
3f843de to
47fd055
Compare
ff52986 to
b2e561b
Compare
b2e561b to
064fa62
Compare
064fa62 to
f5c8ebd
Compare
f5c8ebd to
13d0285
Compare
13d0285 to
92cd999
Compare
34f85bf to
3eebf5d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.0.15->v0.12.1Release Notes
cue-lang/cue (cuelang.org/go)
v0.12.1Compare Source
Evaluator
Embedding binary files like
@embed(file="foo", type=binary)no longer interprets the files as Unicode text, which mangled invalid UTF-8 bytes.cmd/cueThe release archives are now built with Go 1.24, which should fix
cue get gowhen used with Go installed at version 1.24.Full list of changes since v0.12.0
c03a715df60e2f39aa9e4v0.12.0Compare Source
This release fixes dozens of bugs in the new evaluator, enables the
embedandtoposortexperiments by default, further improves JSON Schema support, and introducescue exp gengotypes.Changes which may break some users are marked below with:⚠️
Evaluator
CL 1205861 enables the Embedding proposal via
CUE_EXPERIMENT=embedby default, given that the proposal was accepted in late December.Since v0.11.0, an experimental "topological sorting" of struct fields has been available via
CUE_EXPERIMENT=toposort; this release enables the experiment by default. Topological sorting produces a more principled ordering of fields as produced bycue exportandcue eval. The intent is to ensure the old and new evaluators order struct fields in the same way, in order to build confidence and ease the transition to the new evaluator.We encourage all CUE users to update to this release and switch to topological sorting for their CUE outputs. An issue for gathering feedback is available, should you run into any issues.
A great deal of work has happened in the new evaluator, which can be used via
CUE_EXPERIMENT=evalv3. Marcel also recently posted another update on performance progress. Below is a selection of particularly relevant changes in the new evaluator.CLs 1204490, 1204669, and 1205368 resolve a number of significant performance issues spotted in the new evaluator.
CLs 1206123, 1206178, 1206284, 1206321, 1206385, and 1207910 fix a number of disjunction issues leading to incorrect behavior in the new evaluator.
CLs 1206327, 1206383, and 1206384 fix a number of cycle issues leading to incorrect errors in the new evaluator.
CLs 1206823, 1207237, 1207314, 1204365, 1205361, 1205363, and 1207714 fix a number of closedness issues which resulted in missing or incorrect errors in the new evaluator.
CL 1207912 fixes a regression which could cause "not properly initialized" errors in the new evaluator.
CLs 1206926, 1207169, 1207263, 1207545, and 1207715 fix panics which were recently discovered.
CL 1205862 sorts conjuncts in binary expressions to reduce ordering differences between evaluator versions.
CL 1207908 ensures that conversions of Go values to CUE respect struct field order, for the sake of topological sorting.
CL 1207907 ensures that converting Go arrays to CUE uses
list.Repeatrather than the now-removed list arithmetic syntax.CL 1204491 introduces
CUE_DEBUG=openinline, enabled by default, which emulates the old evaluator's incorrect closedness behavior in some edge cases. This should help the transition towards the new evaluator, and allow us to fix the behavior of these edge cases in future CUE releases.CL 1204608 introduces
CUE_DEBUG=sortfieldswhich sorts all struct fields lexicographically. This replacesCUE_DEBUG_SORT_ARCS=1, which did not work with the new evaluator.Go API
CUE_EXPERIMENT=decodeint64by default, causingcue.Value.Decodeto chooseint64rather thanintas the default Go type for CUE integer values.CL 1206368 adds a
cue/token.Pos.Comparemethod to allow comparing two positions, for example to sort viaslices.SortFunc.CL 1207007 adds
encoding/jsonschema.Config.AllowNonExistentRootto prevent an error when no value is found at theConfig.Rootpath.Builtins
CL 1204378 teaches
list.UniqueItemsto handle incomplete values correctly, fixing a bug in JSON Schema.CL 1204425 fixes
list.MatchNso that it matches final values, like thematchNevaluator built-in, fixing a bug in JSON Schema.cue.Value.IsClosedmethod.cue.Instance.Docmethod.cue/load.Config.BuildTagsfield.cmd/cueCL 1207142 adds the new command
cue mod renameto aid in changing the module path of the current module.cue evalandcue vet.CL 1204111 fixes some edge cases where CUE comments were lost or duplicated, particularly with
cue def.CL 1204874 re-enables command suggestions when a user makes a typo like
cue exprot.CL 1206784 fixes an issue where arguments and flags in
cue cmdcould not be interspersed, unlike other subcommands.Encodings
The new experimental command
cue exp gengotypesallows generating Go type definitions derived from exported CUE schemas. This can be a nice alternative tocue get gofor projects developing both CUE and Go, if one wishes to maintain the source of truth for shared schemas in CUE.cue exp gengotypesis generally more reliable thancue get go, given that Go's type system is not as powerful.JSON Schema spec compatibility is improved further by fixing a number of bugs and adding missing features. Notably, it now supports arbitrary references to internal structure in
$ref. JSON Schema's spec test suite has gone from a "pass" rate of 75% to 79% thanks to these efforts.Full list of changes since v0.11.0
db9cc73870bfc28dc16dde9ad52f60c33d8f75233572c7c274f4e4d506f2f875cf504f98692a5105b8b7a833722ad7b84b079442cf53f6551ac3fe0f02d1f117c5d0b2efb244775ce67ac4c7d062b3005c8170aaf8defbb9caec6f6ada21c18f0ae8bdc29296b292d4ae730ebaa6781f74c12e0e34f770@go(-)by @mvdan in58a8351a1d80997d159b34d3eafa44a2e75ba0639e43a313a06f5289f3d367adb6a8b96a60de5fc9720cc2ebfdb13f38c99f913e00efb5e8c880efb053f47bb1eaedd635d23bbdebb8a5ce7ba4682462a8a73d2bd57d885fbfff68cue get godropping CUE files by @mvdan inb193af0c94fd554d852c897b24b2d113c590ad682605f5d769ee56f79e85cd7d0564de393e9faed235a812437a2681ec9f@go(,type=)for optional fields by @mvdan inf62bb361b787cd416adfcfdf92d109c9cca90396e57ef4b6a3251b5c85e8a7e583af47cue exp gengotypesby @mvdan in51c5fdf413bb1759b0f46func() intby @mvdan in07ff0b5b91f874efcf06debe229815f243bdfe3ae0bbb2452211b2a29da90debf6965e96cff7cfddb432b1e7012640d9b309654c65014742cue cmdby @mvdan ine41efd5cue cmd foo args -t tagby @mvdan ind182fc2d8fabe13f4e72d5a568485747d919d9632a821097074a0c9db5e16477373f67e44b17d41d07977da6f2446fc54ad55208c82ebb11901604aae8ee755e89f6bb51d7b95c2ce0522bec0cd50dcf6export -ebug fixed by evalv3 by @mvdan in2589f7fb0c6204e3359f5a9f4f20c9058884a76cb800cfb223ee8b07b1803fadb3a7c90b6a4e8962f60bf2c38f82491cacc21e5468288686e6cb9b3270242606f41bce4c4b8e8f5594280743ca3dbf61a6aa0277f2775f8962fafa18669a71b2d11c4f8b741d5de8d4Config.DefineSchemaby @rogpeppe in0112a3392b8f6f54c734cc4ef079028c6f3ccaee2233945a2c8033e9950f7fb6e34b9e5fdf0c29639ed8226aac1def8bcf1ea52f12be40eaeaea3010005c225bf869ehelp environmentby @mvdan in4e926340e99c2054dc54449a53d21f15584a03ed2e6d15591d298a53f9e5b6a00fa80af1ea2ff6c86b414ae75f88aa57699b61fc0d471ca1cce50f4519500406cf5f45149ebd432c114787d04cf99441af7d39734c7ee01dc1ef63ec9117a46c1cb2d5527cf4258e9a5ac1b8a698da059f217e14ce128d5d8f2cd0b06bd5781f1406ef4f6855166dd6f1b0a29d10fe1afafedb671ce60c53f32a6985d381f00e3165b1005c360ba8b18a322e53cb655dee39134871553c11890500ed279773daee11cbfbConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.