Open peterino2 opened 1 year ago
I think this issue will address the use case: #14553
Also the langref for @embedFile
should be updated along with resolving this issue - currently it says that absolute paths are allowed.
Damn I need to check my github messages more often I didn't even realize you responded.
I tried out the new embedfile behaviour with addAnonymousImports and it works exactly as advertised on the tin. Love it!
I'm happy closing this issue. (not sure if i should do that or let someone from zig do that)
Zig Version
0.11.0-dev.955+1b86a628a
Steps to Reproduce and Observed Behavior
Hi, I'm upgrading my project neonwood to master
i just want to check if anyone else is running into this but it seems absolute paths on windows are always considered "outside of package" for purposes of
@embedFile
even if the path is inferioreg. for a file which exists at D:\uproj\NeonWood\engine\zig-cache\resources.zig this yields an issue
This is OK
Expected Behavior
I would expect absolute paths would work for purposes of embedfile if the path is within the package root.
Either that or the documentation for embed file should clearly state that it only accepts relative paths.
current documentation states:
path is absolute or relative to the current file, just like @import.