Skip to content

Commit 3559578

Browse files
committed
cmd/cue: document that embedding is limited to files in the same module
Fixes #3788. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I64d2816d45b2259309d1046b4b2e064c8a7688c3 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214899 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent cfe1783 commit 3559578

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/cue/cmd/help.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ Files containing multiple documents cannot be embedded directly.
252252
For NDJSON or multi-document YAML files, embed as type=text
253253
and use APIs like yaml.Extract to decode as a list.
254254
255+
For security reasons, only files contained in the same module
256+
can be embedded. Embedding is forbidden when outside a module.
257+
255258
Note that embedding CUE files is not supported at this time.
256259
257260
For the time being, embedding support can still be disabled via

0 commit comments

Comments
 (0)