cue/interpreter/embed: fix handling of dir matching glob
Currently, the MVP embed implementation sees @embed(glob=dir/*) and
tries to embed dir/subdir. However '*' should only match files, and so
subdir should be skipped.
This CL fixes the implementation.
Per the design in https://cuelang.org/discussion/3264, we will likely
add support for '**' to match 0 or more path elements later. For now the
use of '**' results in an error, but we also update that error message
to indicate that we don't "yet" support '**'.
Fixes #3267.
Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I6e17aaf4e39b1b794951a9e934b7dd47e052ad4c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197338
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>