cue/interpreter/embed: respect module boundaries
The embed proposal specifies that it should not be possible
to embed files across module boundaries. This CL
implements that restriction.
Also fix in passing an unnecessarily broad "is parent directory"
check: it's OK for a file to start with two dots.
Fixes #3273.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I4e80edcc49f5d6475ccdd3f46d206e46be55723b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197383
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>