-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/eval: fix Environment linkage for Disjunctions
The Vertex value for a disjunction is copied into another value causing the Vertex links in the Environment to point to the wrong node. This causes args to be missed when resolving. Ideally the node should not be copied, but as we don't dereferenece, the pointer value needs to be exactly what it is now. A better solution perhaps would be to implement dereferencing. Note that this bug is only exposed through API usage, as during normal evaluation only DisjunctionExprs will be used in computation. This will break OpenAPI if not done correctly. Change-Id: I6a780dc11c7f44ca9a47c4838ea2502371bf7505 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6647 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 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