Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/load: make imports work in "all package" mode
The `build.Instance` was being created directly by `cue/load`, but that ends up with an instance that contains a nil `loadFunc`, so imports are then ignored. Do a shallow copy of the whole value instead, which will copy the `loadFunc` field too. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I9f456fc7f09497ef16ce5d09a2f84c1f48d3374e Dispatch-Trailer: {"type":"trybot","CL":1201522,"patchset":1,"ref":"refs/changes/22/1201522/1","targetBranch":"master"}
- Loading branch information