chore(deps): update module cuelang.org/go to v0.9.2#246
Closed
renovate[bot] wants to merge 1 commit intomasterfrom
Closed
chore(deps): update module cuelang.org/go to v0.9.2#246renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
b36e0d8 to
48913e0
Compare
Contributor
|
See #202 |
96e5dba to
7795a4e
Compare
7795a4e to
f34a600
Compare
f34a600 to
2a17cf5
Compare
1032b63 to
9b827e5
Compare
9b827e5 to
781c221
Compare
eaa9f9c to
ab9878a
Compare
dd09bca to
564629d
Compare
ff0e568 to
5c7b0e3
Compare
5c7b0e3 to
01dbefa
Compare
867ebdc to
66c114c
Compare
66c114c to
df69bce
Compare
85f7795 to
1c17adb
Compare
26aa1c3 to
59ff64e
Compare
59ff64e to
3f3f949
Compare
2d37b27 to
2169561
Compare
4805f6d to
fda2260
Compare
fda2260 to
d3a0aad
Compare
7cec3e3 to
0b0a1fd
Compare
0b0a1fd to
066d411
Compare
Member
|
The breaking changes in cuelang would render existing configurations invalid. |
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
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.9.2Release Notes
cue-lang/cue (cuelang.org/go)
v0.9.2Compare Source
This release includes a fix for a regression around CUE files without a package name, and updates the compiled-in language version to match the actual tagged version v0.9.2.
CL 1196785 fixes the
cue/loadlogic to correctly take CUE files with out a package name into account (issue #3244).Full list of changes since d8742c13dce6f5f02ff67740da2efe1f94a2ed0e
a02ef5af7e7c33bbbfea0v0.9.1Compare Source
This release includes a few fixes, mainly relating to
CUE_EXPERIMENT=modulesbeing enabled by default in v0.9.0.Modules
CLs 1196176 and 1196180 allow using and developing a module whose
cue.mod/module.cuelacks a major version suffix like@v0, as adding one may break older CUE versions withoutCUE_EXPERIMENT=modules.CL 1196156 adds a
cue/load.Config.AcceptLegacyModulesoption to allow loading CUE modules without alanguage.versionfield, given that the field was only introduced in v0.8.0.CL 1196178 fixes a regression where loading a package with the
cue/load.Config.Packageoption set was no longer working as expected.As a reminder, we are maintaining an FAQ page which should help modules users with the upgrade to v0.9.
Builtins
CL 1195888 fixes the
path.MatchAPI so that it can actually take the three parameters it expects.v0.9.0Compare Source
This release includes major changes to Modules and the Evaluator, as well as many other fixes and improvements. A special thanks to Noam Dolovich for numerous contributions to this release!
Modules
Following the Modules proposal v3 being accepted, the modules experiment is now enabled by default in this release. It should no longer be necessary to set
CUE_EXPERIMENT=modules, andCUE_EXPERIMENT=modules=0can be used to disable the experiment. We are not aware of any significant regressions, so please file a bug if you find one.We have published an FAQ page which should help modules users with the upgrade to v0.9. We will add to this page over the coming weeks to ease the transition into the "new" modules mode.
This release also includes experimental support for the CUE Central Registry at https://registry.cue.works. We have added a
cue logincommand to log into the Central Registry via a GitHub account, and other commands know how to use these credentials when talking to the registry.To get started with the Central Registry, we have published a tutorial on working with modules and the central registry as well. We will share more details about the Central Registry and support for other login mechanisms in the future. For now, we are looking to get early feedback.
The CUE schema for
cue.mod/module.cueis now dictated by the declaredlanguage.versionvalue, which is now mandatory. This allows us to change or tighten the schema with future CUE versions without breaking existing users. Use the newcue mod fixcommand to add the field.cue mod publishnow requiressourceto publish a module, as described in Proposal 3017. Thecue mod init --sourceflag is added to create a new module with this field.cue mod publishnow includes VCS metadata in published module versions, as described in Proposal 3057.The
cue mod fixcommand is added, which allows fixing up oldcue.mod/module.cuefiles; seecue help mod fix.The
cue mod editcommand is added, which allows some automatic editing ofcue.mod/module.cuefrom the command line; seecue help mod edit.CL 1193289 teaches
$CUE_REGISTRYabout a specialnoneregistry, causing any matching modules to refuse to fetch or resolve.CL 1195546 teaches
cue mod publishto include aLICENSEfile from the VCS repository root if the CUE module subdirectory has none.CL 1194090 adds the
--dryrun,--json, and--outflags tocue mod publishto inspect what would be published as part of a module version.CL 1194106 adds the
cue mod resolvecommand to show how a module path resolves to a registry in the form of an OCI reference.CL 1185280 adds
cue help modulesas a high-level overview of CUE modules.CL 1194669 restricts the parsing of
cue.mod/module.cuefiles to data-only mode, forbidding any references or comprehensions which may breakcue modcommands or cause other issues.As a reminder, the ongoing and planned work can be seen in the Modules Roadmap.
Evaluator
The new evaluator can now be enabled in the command line via
CUE_EXPERIMENT=evalv3, and in the Go API viacuecontext.EvaluatorVersion(cuecontext.EvalV3). The new evaluator already includes a new disjunction algorithm as well as initial structure sharing support; note that structure sharing can be disabled withCUE_DEBUG=sharing=false.The work is not yet complete, and some known bugs remain, but over 95% of the existing tests are passing and the performance already looks promising. Work on this new evaluator will continue during the next release cycle. We will only turn on the new evaluator by default once we are reasonably confident that there are no significant regressions.
CL 1185458 ensures we detect permanent errors for undefined fields earlier, necessary for the permanent errors fix in
tools/flowbelow.Subscribe to the Performance umbrella issue for updates, and see the Evaluator Roadmap project for the planned work ahead.
Encodings
The Encodings project was kicked off at a recent CUE Community Update call. As part of this, we now have an
#encodingschannel on Slack and Discord, as well as an Encodings Roadmap project on GitHub where the ongoing and planned work can be seen.In this release, the new YAML decoder is available in experimental form and enabled by default, given that all of our tests are already passing. You can disable it via
CUE_EXPERIMENT=yamlv3decoder=0. The old YAML decoder will be removed in a future release once we're reasonably confident that no significant regressions are present.CLs 1193257, 1193394, 1193576, and 1193577 greatly speed up
internal/filetypes, used when loading files from disk incue/loador when encoding/decoding files incmd/cue.CL 1193678 teaches
cue/loadto cache loading files from directories, which avoids repeated work when loading parent directories to form instances.The changes above, plus
cue.Value.IsNullbelow, should result in a significant speed-up forcmd/cueas well ascue/loadwhen loading many CUE packages or directories. For example, on the main CUE repository,cue fmt ./...went from ~14s to ~0.1s, andcue vet ./...went from ~5s to ~2s.CL 1193639 teaches
internal/filetypesto only load its embedded CUE on first use, allowing any Go programs to skip the ~6ms load time until the first call to acue/loadAPI, if any.CL 1195047 fixes the decoding of YAML 1.1 octal numbers so that they no longer result in invalid CUE literals.
cmd/cueCL 1189314 adds a
cue fmt --checkflag to list badly formatted files rather than modifying them directly.CL 1193778 adds a
cue fmt --diffflag which displays diffs instead of updating files.CL 1193962 adds a
cue fmt --filesflag to interpret the arguments as file paths to walk and recursively format rather than package patterns.CL 1192180 speeds up
cue fmtby ensuring that it only processes each CUE file once, rather than formatting files from parent directories as well.CL 1185356 tweaks
cue/loadso thatcue fmtis able to format CUE files given directly as arguments even when they belong to different packages.CL 1193702 ensures that
cue get goalways generates CUE code from Gotime.Durationtypes and values in a way that is fully compatible with Go'sencoding/jsonlibrary.CL 1193386 fixes
cue fmt --simplifyto no longer break complex labels by unquoting string literals within them.CL 1193934 improves
cue fmtso that it does not write to files on disk which are already well formatted.CL 1194247 tweaks
cue helpso that it correctly fails when given unknown help topics or commands.CL 1185473 deprecates the short-form
cue somecmdin favor ofcue cmd somecmd, as the former caused a number of bugs and slowness when working out which subcommand to execute.Go API
CL 1193405 adds a
cue.Value.IsNullmethod to mirrorcue.Value.Nullwithout constructing error values, makingcue.Value.Decodefaster in many scenarios, including its use incue/loadviainternal/filetypes.CL 1191227 adds a
cue/token.File.Linesgetter method, much likego/token.File.Lineswas added in Go 1.21.CL 1193030 ensures that
cue/load.Instancesalways returns instances in a deterministic order, in particular when multiple instances share the same directory.CL 1194421 fixes a memory leak where using
load.Instancesto load CUE modules would increase the size of a globalcue.Contextuntil the process was terminated.CL 1187452 teaches
tools/flowto fail when a task encounters a permanent error, which were being ignored before.CL 1191226 teaches
cue/literal.ParseNumto support both positive and negative signs for consistency.CL 1194410 fixes
cue/loadso that it errors on empty string arguments once again.CL 1193515 fixes an edge case where
cue/formatwould vertically align fields at different struct levels.CL 1193585 fixes a bug where
cue/formatwould print trailing commas for list elements after any inline comments, causing broken syntax.CL 1193759 teaches
cue/formatto collapse empty lists and structs to a single line for consistent formatting.CL 1185361 deprecates
cue/load.Config.StdRoot, which has not worked as advertised for some time.CL 1185684 removes the last remaining bits of API which supported quoted identifiers, which had already been deprecated and largely unsupported for years.
Builtins
CL 1193242 teaches
encoding/yaml.Unmarshalto reject trailing input, just likeencoding/json.Unmarshalalready did.CL 1184631 fixes using
math.MultipleOfas a validator function.CL 1193690 fixes
math.MultipleOfas it had an incorrect implementation which could easily return bad results.CL 1194165 fixes invalid builtin calls so that they correctly result in a "bottom" error.
CL 1194515 fixes
structs.MinFieldsandstructs.MaxFieldsto ignore optional fields, matching the documented behavior.Full list of changes since v0.8.0
889da91cue mod fixwhenlanguage.versionis missing by @mvdan ina2292242cc2c44d3c72bf604c5774c87ab8c372c04b0537802eab1b7b6278c4cue mod publishon a non-tidy module by @mvdan in0c3a848f23bb9fba0047e3c5d18edd4e28e8f9fa68cue mod tidywhen --check says "not tidy" by @mvdan in245837eebf7dca753536f6bbbb9c19e990d570b83b10e9cf174ec639a3b11381ea6c497490a3d0a1900c26db19b73a1c2db03dd62help environmentto be more explicit by @mvdan in3e19519a917c576cd7bbf70832e621ae0add94b6704cdaa5d55b51227ab8002a5e77fe32de47540898fe9e1ffaaf3b22babc40b0358cfc7c02eb5383505253a7c3e380b4d17a6661949b71b72d9c800db1a587089d3eae5b88cfcfd187b408192239927c5034fe848dc41955b9394167fca1bcc2adcaa6a6a70023ce48c0a90aec574519674900cfc7d490807d93bccc0d6193381852897bf1a651cd5ca27689d205453ff46feda5c3dc2f211cbcd3078020b27a01903588e1a96f16f0fa64c621ad8c524a27795b57a20aac35a40f513a170b70e5b45755581dee1461591fd8ef3c0c56804717612837ae888508443106fa8693a021a5c8ba861376eacde77abd5778adf84fd5472c4bc789d3e97695d0e80199443da0b07248da6e775398afe322d4ae7530b3006ad84fe1b91dcd350690add3e9bf33c64baa18185426fefd38e6645d58622b8c74336a99107d485c5f8930aa49ee929a0cae964bbf1bb83ae376c5f6e7a246bdd00a747cbf75699a169ae2a35caeda7bdc24cf3cf2fd5802f63977e0c22d5530fbe004dfdebcd991eec1b72319e465ed76da651ed468efe829518daea8ec4b7d281a75495feee4ed59e7bd9e49f91223e39efad90576a3ed4c60191a080c35c023c4a76f656acd43871f0cd02b5e9aa4e3ebadf17614463b3a7fea0bf573f9ecd7a0c445c7d51209a5e284eefaf36efd1be0b0fdff77a6fc7d3f3926f060a983b194706840b5321def418fc33f5219578e9e129d3d545e5f8e0ecb2410c1e843cb6d500927e0fbecb2dd75a612f1ae21b00397dd29f18935df91259cf9d3ed229aa42655759f26ed9c5ae0f9c2de9613234359a0d3cbc3e24c6e48c0d82bcda5b6a263771220e6fa3bf5f05640c2fd6455030f7d28caa1e982f90f54d696e44bf733fb72ba5289cf30f14a8a873Configuration
📅 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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.