Render computeds differently during updates.
Rather than displaying `computed` as we do during previews, display
`undefined` instead, as these values may be intentionally undefined by
the user's program.
Fixes
@@ -601,7 +601,11 @@ func printPropertyValue(
write(b, op, "archive(uri:%s) { %v }", shortHash(a.Hash), a.URI)
}
} else if v.IsComputed() || v.IsOutput() {
+ if planning {
writeVerbatim(b, op, v.TypeString())
+ } else {
+ write(b, op, "undefined")
+ }
} else {
contract.Assert(v.IsObject())
obj := v.ObjectValue()
