You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A passing test. The sanitization logic is unable to make the bar identifier refer to its associated target node, and the result refers to a different result than intended. This logic can also generate dangling references (eg. if the top level field is not named bar, the result will refer to a non-existent bar).
It would be better if Sanitize returned an error when this happens, as it almost certainly indicates an error in the generating code, rather than returning subtly wrong code.
What did you see instead?
> exec go mod tidy
> ! exec go run .
[stdout]
bar: {
foo: bar_1
}
foo: {
bar: "something"
}
let bar_1 = bar
FAIL: /tmp/z.txtar:2: unexpected command success
The text was updated successfully, but these errors were encountered:
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes
What did you do?
What did you expect to see?
A passing test. The sanitization logic is unable to make the
bar
identifier refer to its associated target node, and the result refers to a different result than intended. This logic can also generate dangling references (eg. if the top level field is not namedbar
, the result will refer to a non-existentbar
).It would be better if
Sanitize
returned an error when this happens, as it almost certainly indicates an error in the generating code, rather than returning subtly wrong code.What did you see instead?
The text was updated successfully, but these errors were encountered: