diff --git a/compiler/value.go b/compiler/value.go index 5e59bf40..cd8cb6c5 100644 --- a/compiler/value.go +++ b/compiler/value.go @@ -185,7 +185,10 @@ func (v *Value) IsConcreteR(opts ...cue.Option) error { } func (v *Value) Walk(before func(*Value) bool, after func(*Value)) { - // FIXME: lock? + // FIXME: this is a long lock + v.cc.rlock() + defer v.cc.runlock() + var ( llBefore func(cue.Value) bool llAfter func(cue.Value)