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
The bug obviously occurs because while building a package, odin tries to use the parent directory name as the name for the executable. At the root, there is no parent. So, here is the bug.
My issue isn't really about wanting to make a package at filesystem root, that's weird. It's more about using the parent directory name for the executable name. Why do this? We already have the package name and, unlike go, the package doesn't have to be main. I usually call the package the same as the project. Is there any reason for using parent directory name?
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Windows
Make an odin file at
C:\
Run cmd as administrator at
C:\
odin build .
This will output a peculiar empty file
C
without any extensions(Which is kinda hilarious)
Interestingly,
odin run .
works fine, as well as-file
variants.Linux
Here, the crash is more straightforward:
Note: this also works without any odin files, just launching
odin build .
orodin run .
at/
is enough.Context
Notes
The bug obviously occurs because while building a package, odin tries to use the parent directory name as the name for the executable. At the root, there is no parent. So, here is the bug.
My issue isn't really about wanting to make a package at filesystem root, that's weird. It's more about using the parent directory name for the executable name. Why do this? We already have the package name and, unlike go, the package doesn't have to be
main
. I usually call the package the same as the project. Is there any reason for using parent directory name?The text was updated successfully, but these errors were encountered: