-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: rip out cue.Instance and cue.Merge from 'cue cmd'
As can be seen by the cmd_many.txtar test just added, we still support the scenario where 'cue cmd' is given multiple packages by unifying all of their values together, rather than using cue.Merge. Other than cue.Merge having been deprecated with DO NOT USE warnings since early 2021, it seemed to have had somewhat odd semantics. Structs in CUE are open by default, so unifying {} with {b: "b"} should result in {b: "b"} without any issue, as we do now. The merge semantics, which aren't documented and deprecated, disagree. However, the passing test mimicking what a few users have reported using still passes just as it did before, and the new semantics are now well understood - if not documented as such yet - so this seems fine. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Ia3195643612f629ac61a36f8469945ee345e0719 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193718 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information
Showing
3 changed files
with
20 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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