-
Notifications
You must be signed in to change notification settings - Fork 515
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
Make release issue on Windows #1049
Comments
What's the version of rebar3 you're using? THat sounds like an older one from the broken color codes I see. |
My Windows Makefile is fetching it from "the official" pre-built location at
Here it is:
|
So the error has to do with:
Seems to indicate issues with permissions on either of the paths mentioned. Are all of these readable and/or writeable where required? |
Yes, as I've illustrated above, I am able to read/write to that location/file, and the link is created successfully when using Here's an example:
I also created a bug report here |
Have you tried running it in Powershell? I know I could do releases for some months ago with rebar3. Then I used Powershell and not cygwin. |
Apparently, as Lukas found out, this is a Windows issue that it only allows to create symlinks when a user has a special privilege granted. Somehow cygwin's
Not sure if it's a feasible solution, but maybe |
Yeah in rebar3 we have to shell out to create symlinks in windows: https://github.com/rebar/rebar3/blob/master/src/rebar_file_utils.erl#L67-L112 I've marked this bug as related to a dependency if the problem only happens with relx. |
I have done some work in erlware/relx#472 in relation to creating symlinks on Windows that may help with this issue. I did not look or test its usage for overlays. |
Running
rebar3 release
on Windows with cygwin results in the following error:I am not sure if the
erl_format
issue above is bogus.The failing bit is in the overlay section which has:
The error below indicates that
relx
is failing witheperm
though when creating the link by hand it works fine:$ ln -s apps/mta/etc/mta.test.config build/default/rel/mta/releases/0.1/mta.test.config
Executing the same code in erlang by hand results in:
So, this works in cygwin's bash without issues, but fails when making
file:make_symlink/2
call. Maybe a bug in this function that needs to be worked around by relx?The text was updated successfully, but these errors were encountered: