<div><div dir="auto">Hi!</div><div dir="auto"><br></div><div dir="auto">Sorry, the priv folder was just for example, for other user folders the problem is still take a place. Would be great to hear rebar3 maintainers opinion.</div><br><div class="gmail_quote"><div>ср, 8 нояб. 2017 г. в 11:44, Dmitry Kolesnikov <<a href="mailto:dmkolesnikov@gmail.com">dmkolesnikov@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hello,</div><div><br></div><div>The private folder of applications are automatically added to the release. </div><div>There are not need to add an overlay. You can move your root /priv folder under you application x.</div><div><br></div><div>Best Regards,</div><div>Dmitry</div><div><br></div><br><div><blockquote type="cite"></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On 8 Nov 2017, at 0.25, Alexander Petrovsky <<a href="mailto:askjuise@gmail.com" target="_blank">askjuise@gmail.com</a>> wrote:</div><br class="m_6574143842784643545Apple-interchange-newline"></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div><div>Hi!<div><br></div><div>I try to prepare erlang release, with follow config:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">{relx, [<br>    {release, {x, "0.0.1"},<br>         [x,<br>          sasl]},<br>    {overlay, [<br>         {copy, "priv/*", "priv/"}<br>    ...<br>./rebar3 release</blockquote><div><br></div><div>But, relx doesn't support wildcard. I'm try the follow config:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    ...<br>         {copy, "priv/", "priv/"}<br>    ...<br>./rebar3 release</blockquote><div><br></div><div>Unfortunately, the result will be <i>priv/priv</i>. But when I do:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    ...<br>         {copy, "priv/", "./"}<br>    ...<br>./rebar3 release</blockquote></div><div><br></div><div>Everything goes without problems. But, when I'm try to make tarball from that here problems come: the <i>./rebar3 tar</i> goes to endless loop continuously add <u><i>x-0.0.1.tar.gz</i></u> to himself. </div><div><br></div><div>The <i>./rebar3 tar</i> keep archive tar.gz file in the same directory with generated erlang release files. So, when rebar3 sees mappings like {copy, "priv/", "./"} it's transforms them into something like</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[{"./",           "/Users/juise/Documents/x/_build/default/rel/x"},<br> {"log/sasl", "/Users/juise/Documents/x/_build/default/rel/x/log/sasl"}]</blockquote><div><br></div><div>which cause endless loop.</div><div><br></div><div>I see multiple solutions:</div><div>- ./rebar3 tar must archive all files in release directory, and not pay attention to overlay directive;</div><div>- relx should ignore mappings like {"./", "/Users/juise/Documents/x/_build/default/rel/x"};</div><div>- erl_tar should explicitly ignore result archive and don't add to himself.</div><div><br></div>-- <br><div class="m_6574143842784643545gmail_signature"><div><div><div>Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 931 9877991<div><br></div></div></div></div></div></div>
</div></div></div></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div></blockquote></div><br></div></blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 931 9877991<div><br></div></div></div></div></div></div>