cmd/cue: test that package paths outside the module are rejected
When a package argument resolves to a directory outside the current
module, loading fails with a "dir outside of root" error from the
importer. Add a testscript case that exercises this via a relative
path from a nested sub-module.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I84d17d7c0cbfa9933d25c9a07f5d0261e8c858f8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1236164
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>