-
|
related: #1117 I tried loading files via go embed directives. I am actually not able to make this work. Here is the playground link i was able to make. The playground is not working now because it is timing out. What i am trying to do is load a start file from the local file system than depends on files that are shipped with the binary as embed in go 1.16. main.cue should be able to reference pipeline.Schema |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 31 replies
-
|
Have you tried this? |
Beta Was this translation helpful? Give feedback.
-
|
@yassinm please can you provide a reproduction of what is not working? |
Beta Was this translation helpful? Give feedback.
-
|
#607 (comment) is relevant here, specifically:
The comment goes on to suggest how we will like add support for loading from an 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 Hence I have the following example, which happens to use an overlay (but could just as easily write the |
Beta Was this translation helpful? Give feedback.
#607 (comment) is relevant here, specifically:
The comment goes on to suggest how we will like add support for loading from an
io/fs.FSin the future, via acuelang.org/go/cue/load.Configfield 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.FSto a temporary directory FWIW. As @verdverm also mentioned, acue.mod/module.cuewill be required in the F…