-
Notifications
You must be signed in to change notification settings - Fork 287
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: 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 <[email protected]> Change-Id: I4e80edcc49f5d6475ccdd3f46d206e46be55723b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197383 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
3 changed files
with
45 additions
and
27 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