Skip to content
Discussion options

You must be logged in to vote

#607 (comment) is relevant here, specifically:

Put another way, an overlay, in its current form, exists in order to complement what is on disk, rather than wholesale replace its contents.

The comment goes on to suggest how we will like add support for loading from an io/fs.FS in the future, via a cuelang.org/go/cue/load.Config field or similar.

Until that time, you need to follow an approach that, as @verdverm points out above, runs from an empty directory to be sure that the load does not interact with files on disk. This effectively becomes equivalent to writing the your io/fs.FS to a temporary directory FWIW. As @verdverm also mentioned, a cue.mod/module.cue will be required in the F…

Replies: 3 comments 31 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
16 replies
@verdverm
Comment options

@ymolists
Comment options

@ymolists
Comment options

@verdverm
Comment options

@ymolists
Comment options

Comment options

You must be logged in to vote
15 replies
@verdverm
Comment options

@myitcv
Comment options

@yassinm
Comment options

@myitcv
Comment options

@myitcv
Comment options

Answer selected by yassinm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants