-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong symlink to non-existent priv
and include
dirs on Windows
#1173
Comments
The decision to make a "file" symlink rather than a "directory" symlink is made in the erlang runtime. https://github.com/erlang/otp/blob/maint/erts/emulator/drivers/win32/win_efile.c#L2019-L2023 |
Perhaps
|
I have done some work in erlware/relx#472 relating to symlinks on Windows. These two projects seem to have shared common Windows symlink code in the past but have since received their own fixes to common problems. |
Ah, this probably explains the problems with #1171 |
They share codes and if I remember right there was something that I tried to solve. And relx was using old copy for windows. Old copy have the 256 chars restriction in paths. What I could see in relx issue was that there is a logic error. Will look into that. If you want I can try to give some of my ideas about this. If I have time I can try to solve this. |
This issue has been reported as happening on OSX as well. |
i believe the osx issue may be slightly different and may be caused by |
The situation described by @talentdeficit is happening to me on linux. |
When app directories are copied into the _build directory symlinks are created to for the include, priv & source directories. https://github.com/erlang/rebar3/blob/master/src/rebar_prv_compile.erl#L204
If the source directory does not exist (for example apps/myapp/priv) then a "file" symlink is created rather than a "directory" symlink.
If the source directory is created in the future, the symlink is not usable as either a directory or a file.
This can be reproduced with:
This behavior is on Windows, in a non-Administrator user account that has the
SeCreateSymbolicLinkPrivilege
The text was updated successfully, but these errors were encountered: