You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for making ohsnap!
Secondly, I am pretty new to zig, so maybe I am just doing something wrong
Issue
When ohsnap tries to update a snapshot in src/main.zig, it gets an ENOENT.
This is most likely because @src returns the file relative to the root directory of its module (so in my case just main.zig), but ohsnap tries to find it in the cwd (the parent of src) and logically doesn't find it there.
Fix
I currently just symlink src/main.zig to main.zig, but ideally ohsnap would somehow get the root directory of the module and look for the file there.
Thank you for taking a look at this!
The text was updated successfully, but these errors were encountered:
Disclaimer
Firstly, thank you for making ohsnap!
Secondly, I am pretty new to zig, so maybe I am just doing something wrong
Issue
When ohsnap tries to update a snapshot in src/main.zig, it gets an ENOENT.
This is most likely because @src returns the file relative to the root directory of its module (so in my case just main.zig), but ohsnap tries to find it in the cwd (the parent of src) and logically doesn't find it there.
Fix
I currently just symlink src/main.zig to main.zig, but ideally ohsnap would somehow get the root directory of the module and look for the file there.
Thank you for taking a look at this!
The text was updated successfully, but these errors were encountered: