-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Change-Id: I6e17aaf4e39b1b794951a9e934b7dd47e052ad4c Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197338 Reviewed-by: Marcel van Lohuizen <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
3 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters