)]}' { "commit": "f1d3d8132cc686fd5d7c48512a0373d261334cbb", "tree": "cf94ae2eda61aa77d104206f9e5bcc6a354543b3", "parents": [ "c8b7fe0c7be85cb757188cc4357d7eb607efafa2" ], "author": { "name": "Marcel van Lohuizen", "email": "mpvl@golang.org", "time": "Sun Apr 11 15:29:33 2021 +0200" }, "committer": { "name": "Marcel van Lohuizen", "email": "mpvl@golang.org", "time": "Sun Apr 11 14:44:37 2021 +0000" }, "message": "internal/core/export: fix decl export printing and extraction\n\nFixes #894\n\nA few related fixes:\n\n- Extract from all evaluated structs, not just unevaluated\nconjuncts, which results in dropping merged values.\n(Note that unlike with fields attributes, the the declaration\nattributes are value-bound, and thus need to be included.)\n\n- Decl attrs were not always printed in export. This has now\nbeen fixed.\n\n- Changed the (internal) API to accept a Vertex, instead\nof a list of conjuncts, which is a better abstraction.\n\nChange-Id: Id598fefa88aff88aefd126fb80f1637b3f50c7fb\nReviewed-on: https://cue-review.googlesource.com/c/cue/+/9382\nReviewed-by: CUE cueckoo \u003ccueckoo@gmail.com\u003e\nReviewed-by: Paul Jolly \u003cpaul@myitcv.org.uk\u003e\nReviewed-by: Marcel van Lohuizen \u003cmpvl@golang.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "2038a70c8ae543563385ee02ba6af9cb73df8fff", "old_mode": 33188, "old_path": "cue/types.go", "new_id": "30efd1e195ed038476c74f4270df0c12c5de20ab", "new_mode": 33188, "new_path": "cue/types.go" }, { "type": "modify", "old_id": "4af83ac5ea3298c325c486b9931ecef5ce1698ab", "old_mode": 33188, "old_path": "internal/core/export/expr.go", "new_id": "cdd5b28cf8b2b83c6f6d887f55206acc4a5dc25e", "new_mode": 33188, "new_path": "internal/core/export/expr.go" }, { "type": "modify", "old_id": "4090fd96caf865c78fb94f108916e8125e81cafd", "old_mode": 33188, "old_path": "internal/core/export/extract.go", "new_id": "792563cb168e87a41838e4070080edfc4cd5bb55", "new_mode": 33188, "new_path": "internal/core/export/extract.go" }, { "type": "modify", "old_id": "9adb2276cb8a522a09eda64efb940fc283ae6256", "old_mode": 33188, "old_path": "internal/core/export/testdata/adt.txtar", "new_id": "3c65168962a46407177bf6093268bee4084f08f5", "new_mode": 33188, "new_path": "internal/core/export/testdata/adt.txtar" }, { "type": "modify", "old_id": "665335ad129099159d66195a16f411fa951a5748", "old_mode": 33188, "old_path": "internal/core/export/testdata/attrs.txtar", "new_id": "e51eb7f5852f58d353fad7e66ee5856759546a1d", "new_mode": 33188, "new_path": "internal/core/export/testdata/attrs.txtar" }, { "type": "modify", "old_id": "150858113ce83c240245b95fae3d79a011221f8a", "old_mode": 33188, "old_path": "internal/core/export/value.go", "new_id": "91aeacd4d5f3cab5dbec399b2ff804dd8b0043c9", "new_mode": 33188, "new_path": "internal/core/export/value.go" }, { "type": "modify", "old_id": "d9742e7ab232750f19fafece2a6cdd8d1387c493", "old_mode": 33188, "old_path": "internal/encoding/yaml/encode.go", "new_id": "8fd0a61459bfbf67ffea0e5dfbe96f3b4563514e", "new_mode": 33188, "new_path": "internal/encoding/yaml/encode.go" } ] }