Update go modules (release-v0.7) (minor)#3157
Open
renovate[bot] wants to merge 1 commit intorelease-v0.7from
Open
Update go modules (release-v0.7) (minor)#3157renovate[bot] wants to merge 1 commit intorelease-v0.7from
renovate[bot] wants to merge 1 commit intorelease-v0.7from
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: acceptance/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: tools/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: tools/kubectl/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
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.13.2→v0.16.0v0.11.2→v0.16.0v0.9.3→v0.10.06f40a37→3459088ba74d44→19d51d7v0.13.7→v0.14.0v28.3.3+incompatible→v28.5.2+incompatiblev5.6.2→v5.8.0v5.16.5→v5.17.0v0.23.0→v0.25.0v1.63.4→v1.64.8v1.1.1→v1.2.0v0.20.7→v0.21.2v0.9.0→v0.10.0v0.9.1-0.20240317085821-8e2966059a09→v0.10.0e7eb2ec→5400350v0.62.0→v0.66.0v1.6.0→v1.14.020ebb0f→4e6772av0.9.1→v0.10.0v2.4.1→v2.6.2v1.3.10→v1.5.0v1.9.1→v1.10.4v1.14.0→v1.15.0v1.9.1→v1.10.2v1.20.1→v1.21.0v0.22.3→v0.26.2v0.38.2→v0.44.0v0.34.1→v0.40.0v0.34.0→v0.40.0v1.11.0→v1.15.0a2b48b6→cb323f97e4ce0a→3dfff042d47ceb→3dfff04v0.47.0→v0.51.0v0.18.0→v0.19.0v1.12.3→v1.13.0v3.18.6→v3.20.0v0.34.3→v0.35.2v0.34.3→v0.35.2v0.34.3→v0.35.2v0.34.3→v0.35.2f3f2b99→a19766bv1.34.3→v1.35.2v0.26.0→v0.31.0v0.20.1→v0.21.1v5.7.1→v5.8.1v0.20.1→v0.21.1Release Notes
cue-lang/cue (cuelang.org/go)
v0.16.0Compare Source
Changes which may break some users are marked below with:⚠️
Language
As a reminder, we have two ongoing language experiments since v0.15; a replacement for struct embedding and a rework of aliases. Please give these a try and report any issues or feedback!
cmdreferencepkgglobal experiment is now stable, meaning thatCUE_EXPERIMENT=cmdreferencepkgis always enabled.#"""#is now accepted as a string literal quoting a double quote,".Multiline string literals now require a trailing newline, matching the language spec.
The new
tryexperimentThis release introduces the
tryexperiment, which adds atryclause in comprehensions as well as the use of?in field selectors. This addition to the language is intended to provide a more concise syntax for handling optional fields without the risk of unintentionally swallowing errors.This experiment also introduces the
elseclause forifandtrycomprehensions, and thefallbackclause forforcomprehensions, which trigger when a comprehension produces zero values.You can try this experiment by following our how-to guides on the
tryclause and theelseclause. For more information, see the proposal on GitHub and the spec change patch.Evaluator
Performance
Further improve the use of caching in the typochecker algorithm; this provides speed-ups of up to 80% on some large projects.
Very large structs (tested with 20,000 fields) are up to 80% faster now, as we were repeating some work unnecessarily.
A great deal of effort has gone into reducing the allocations and memory usage across a number of projects. For some of these, memory usage is down by as much as 60%.
These improvements were possible thanks to our Unity service, letting us analyze CUE's performance and test for regressions on third party projects. Contact @mvdan on Discord, Slack, or via the Unity page to ensure that your project is included or you are running into slowness.
A number of changes were made to improve support for using
cue.Values concurrently; see Issue #2733 for more details and ongoing progress.Other changes
Fix a regression introduced in v0.13 where the
orbuilt-in with literal arguments could stop behaving like a disjunction.A number of panics and other bugs in the evaluator which were reported since v0.15.0 have been fixed; thank you to all who reported these.
cmd/cueAdd support for
$DOCKER_AUTH_CONFIGto directly provide the contents of$DOCKER_CONFIG/config.jsonto authenticate with module registries, matching Docker's current behavior.The
--outfileflag now works when given non-regular files such as named pipes or sockets.cue mod publishno longer ignores sub-directories containing ago.modfile.cueinside thecue.moddirectory now fails consistently with a clear error message to not place CUE code there. Previously, some commands worked while others failed with confusing errors.--verboseand--traceflags have been moved to thecue get goandcue trimcommands respectively, as they were the only ones actually using those flags, and this could be confusing to users.Fix a bug where loading
./...:pkgnamecould lead to loading directories without CUE files as instances, which could cause poor performance for CUE packages with multiple parent directories.cue exp writefsgains anencodingoptional field for regular files, to specify an encoding rather than infer it from the filename extension.LSP server
Initial LSP support for editing embedded JSON and YAML files. This feature provides completions and hover-docs when editing JSON or YAML files which are embedded into CUE via the
@embedattribute. A teaser video is available on YouTube.Code Actions: two code actions are now provided, Add surrounding struct braces and Remove surrounding struct braces, which convert between
and
with the cursor on
b.A complete overhaul of how the LSP server suggests code completions. This solves the previous naïve implementation which would only make suggestions after a field name or path had been started. Now completions are available from within whitespace.
Embedded paths with mutual dependencies: embedded paths with multiple components (e.g.
a.b.c) can in some cases only be fully resolved after the resolution of other embedded paths. The LSP server can now correctly handle these dependencies.The LSP server now implements LSP Document Symbols functionality. This is often used by editors to provide light-weight breadcrumb navigation within a file.
Some preliminary diagnostics are now sent from the LSP server back to the editor. Initially this mainly indicates syntax errors in CUE files, but this can be extended in the future.
Many bug fixes, including better behaviour for files and directories with spaces; improvements for value aliases (
foo: L=x); LSP rename now provides placeholder text; improved jump-to-definition behaviour for package-level fields; fixed issues around imports; path resolution; formatting of standalone CUE files; and others.See our Getting Started wiki page for instructions on how to set it up with your editor.
Please report any bugs or missing features you encounter via the Issue tracker or via the
#lspchannels on Discord or Slack.Encodings
Add support for encoding YAML tags like
key: !Custom valueby using CUE attributes likekey: "value" @​yaml(,tag="!Custom").cue get gonow detects which Go packages use Kubernetes type semantics via// +k8s:openapi-gen=trueand obeys the field annotations// +optionaland// +nullable.cue get gogains a--codecflag to configure the use and priority of Go struct field tags likejsonoryaml.Fix a bug where
cue get gocould skip over fields whose type implements one of the supported marshaling interfaces.Fix a few bugs where
cue get gocould result in invalid or failing CUE code.JSON Schema's
Config.OpenOnlyWhenExplicitoption is now exposed for the CLI via the filetype tagjsonschema+openOnlyWhenExplicit.JSON Schema now properly encodes hash references for better compatibility with other tools.
Standard library
The
strconvpackage addsParseNumber, likeParseIntorParseFloatbut allowing other CUE number strings such as1Ki.The
netpackage addsInCIDRto test whether an IP is contained by a CIDR string.The
netpackage addsParseCIDRto extract useful information from a CIDR string.The
netpackage addsCompareIPto compare two IP addresses, which can be useful for computing with IP ranges.The
net/httppackage addsServeas an experimental API to listen on a port and serve HTTP requests.The
tool/filepackage addsSymlinkto create symbolic links.Go API
cue.Value.Decodenow supports the newcue.Unmarshalerinterface, allowing Go types to implement their own CUE value decoding logic via anUnmarshalCUE(cue.Value) errormethod.The new
cue.IsIncompletefunction reports whether the given value is a CUE incomplete error.cue/astgains theNewPredeclaredandIdent.IsPredeclaredto mark and detect identifiers referencing predeclared names likeerrororintrather than fields which may shadow those names in the current scope.cue.Value.Decodenow usescue.IsIncompleteto not treat incomplete errors as fatal, allowing the decoding to continue.Fix a bug where
cue.Value.Decodecould behave incorrectly when decoding a CUEnullor incomplete value.cue/token.Comparenow sorts absolute paths before relative ones, to ensure consistent behavior between Unix-like systems and Windows.cue/ast.Node.Commentsandcue/ast.Node.AddCommentinterface methods are now removed; usecue/ast.Commentsandcue/ast.AddCommentrespectively.cue/parser.FromVersionandcue/parser.DeprecationErrorAPIs are now removed.cue.Instance.Evalmethod is now removed.Full list of changes since v0.15.0
de47a5e771e253e1de78ee3306a9da5d43a5f20a713ee970f6d502843ee106b13fdcdb000506ecd6a481edc89dfe2d8f7bexp writefsby @mvdan ind0eca3fexp writefswith internal/filetypes and internal/encoding by @mvdan in766668dexp writefstestscript by @mvdan in00eddbf87322130cbc9a128f0246fe9f503c76dc5add7361a791e697cde471e3dfa50a6cce9bcc257634c1be2bb9fb017350a0a5e36702fddb4afc10b49a54d0e2ab67fb912e98ca6e3b3d9ffcbaf83027cde50462de63120c1149f2e82991aeb33e2585b3b840542240356ab7675369f5e266a@yaml(,tag)attribute by @jonas-meyer inb1a58bd23736ebbb18d7bb1c63da3f2f654ef6bb80069eac9a4d2a6f028411e4504db058cbd0cec3e289go fix -any=false ./...after Go version bump by @mvdan in8579c4675ee97a788eeed08a7ec342cc85f3dacb0ca93bcc10a4a11af2b697ab690442225a1c4e3eb948355d6fd9e2dec36a78eff](https://redirect.github.com/cue-lang/cue/commit/6a78eff55d0ed36cea1dfcb3dbd6cConfiguration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.