#@embedFile and package paths

1 messages · Page 1 of 1 (latest)

humble ore
#

I am getting the error embed of file outside package path from @embedFile

I don't actually understand what a "package" is since there doesn't seem to be any documentation for it. I just have a very standard build.zig with addExecutable

The file I want to embed is not in the same directory as all the zig code. It is created by a different build system which I currently run separately to zig build.

How can I add a directory to the package path?

worn hull
#

then you can do @embedFile("embed_name")