This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Tags: cuelang/cue
Tags
cmd/cue/cmd: fix bug in resolving builtin package shorthands Regression resulted in supporting only top-level builtin packages. Fixes #999 Change-Id: Ia22ed7435e59cf788e0664cff222eae1887c3b0d Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9902 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
cue/cmd/cue: fix regression for -H flag Instance iterator accidentally would include instance twice in some cases, which caused it to be unified into a new anonoymous package for which hidden fields would not be shown. Also adds an optimization in Unify to return one of the arguments if they are identical, instead of unifying. The setting the variable instead of returning makes using a debugger easier. Change-Id: I311c0d2dcb50d277a47eaaae352e5fb467935eba Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9844 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
cmd/cue/cmd: better checks for incorrect flags Fixes #969 Change-Id: I1628c5158c996830576dc65e4b6fc667e0009b46 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9821 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
doc/ref/spec.md: remove "dead code" This removed section is outdated and incorrect. The relevant matter is discussed in the sections below. Fixes #939 Change-Id: Id8bff5b790132177c95617621e87cfc613c28590 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9701 Reviewed-by: Paul Jolly <[email protected]>
cue: clean up Format Makes format more intuitive and gives bonus features to mitigate any pain this causes for backwards incompatibility. Fixes #882 Change-Id: I6390f95c4e7b27b9e0a195bd936f6aae55aadf27 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9487 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
cmd/cue/cmd: hook up protobuf encodings types Closes #606 Change-Id: I712ed6f9fc37d53b633a44ed87e4c71c1e018b0f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9372 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
internal/core/export: fix decl export printing and extraction Fixes #894 A few related fixes: - Extract from all evaluated structs, not just unevaluated conjuncts, which results in dropping merged values. (Note that unlike with fields attributes, the the declaration attributes are value-bound, and thus need to be included.) - Decl attrs were not always printed in export. This has now been fixed. - Changed the (internal) API to accept a Vertex, instead of a list of conjuncts, which is a better abstraction. Change-Id: Id598fefa88aff88aefd126fb80f1637b3f50c7fb Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9382 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
cue: deprecate Value.FieldByName Can be replaced by LookupPath. Also - make Def behave like LookupDef - update some other deprecation comments - copy over tests Change-Id: If7fa60fda28c9fea1b5328a41d79f52fafde394b Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9349 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
cmd/cue/cmd: load import dependencies of tool files Fixes #869 Fixes #871 Change-Id: I7c439d298d819bfc20c33f2e028a0216a57c4307 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9303 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
tools/trim: optional fields should not remove non-optional The solution is rather brute-force, we need to find something more fine-grained eventually. But for now this avoids an erroneous removal. Fixing this will be easier when optional fields are represented as normal fields with an optional flag, as they were in v0.2. Fixes #855 Change-Id: I65829858b1856fcd09aa121f1e1c53fd49864c87 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9221 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
PreviousNext