<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Duncan, no, if you want to use a different version of a transitive dependency you must make it non-transitive or use an override to set cowboys deps for it (though using an override for this is overkill and should just include ranch at the top level).<br></div>
<div><br></div>
<div>Upgrading ranch without overriding or making it a top level dep would mean the lock file would not match what is specified in the configs.<br></div>
<div><br></div>
<div>Changing the version of a package a dependency depends on is taking responsibility for that dependency.<br></div>
<div id="sig19496053"><div class="signature"><br></div>
<div class="signature">--<br></div>
<div class="signature">Tristan Sloughter<br></div>
<div class="signature">t@crashfast.com<br></div>
<div class="signature"><br></div>
</div>
<div><br></div>
<div><br></div>
<div>On Tue, Nov 29, 2016, at 12:34 PM, <a href="mailto:duncan@sfractal.com">duncan@sfractal.com</a> wrote:<br></div>
<blockquote type="cite"><div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">I use cowboy and cowboy has a dependency on ranch.</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">If I "rebar3 upgrade ranch", it tells me "Dependency ranch is transient and cannot be safely upgraded. Promote it to your top-level rebar.config file to upgrade it."</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">If I rebar3 upgrade cowboy", it tells me "No upgrade needed for cowboy, ..., No upgrade needed for ranch".</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">Is there a way to upgrade ranch without promoting it in rebar.config? Ie - it may not be 'needed' but I would like to do it anyway. Wrt rebar.config, I agree it's unlikely cowboy would evolve to not being dependent on ranch, but it's more the principle that I'd prefer to keep my dependencies to only what I am actually using. On the other hand, I would like to upgrade the pieceparts as they come out instead of doing a big bang later. I'm guessing some of my other dependencies are in a similar state (eg cowlib complaining about random - it has been fixed but not in version I have).</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">Does rebar3 have an 'force upgrading dependencies' option? Or is there some other trick I could do?</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">Duncan Sparrell</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">s-Fractal Consulting LLC</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">iPhone, iTypo, iApologize</span></span></span><br></div>
<div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"><br></span></span></span></div>
<blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:blue;margin-left:8px;padding-left:8px;font-size:10pt;color:black;font-family:verdana;"><div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt">-------- Original Message --------<br> Subject: Re: [erlang-questions] [ANN] Ranch 1.3<br> From: Loïc_Hoguin <<a href="mailto:essen@ninenines.eu">essen@ninenines.eu</a>><br> Date: Tue, November 29, 2016 12:37 pm<br> To: Max Lapshin <<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>>, Garry Hodgson <<a href="mailto:garryh@att.com">garryh@att.com</a>><br> Cc: Garry Hodgson <<a href="mailto:garry@research.att.com">garry@research.att.com</a>>, Erlang Questions<br> <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br> <br> Up to you. :-)<br> <br> Ranch 1.3 isn't very different so it should be pretty painless to update.<br> <br> On 11/29/2016 05:49 PM, Max Lapshin wrote:<br> > So it is a good idea first to upgrade ranch and then go with beta cowboy<br> > to production in a week later?<br> <br> -- <br> Loïc Hoguin<br> <a href="https://ninenines.eu">https://ninenines.eu</a><br> _______________________________________________<br> erlang-questions mailing list<br> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br> <a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span></span></span></div>
</blockquote><div><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:10pt"></span></span></span><br></div>
<div><u>_______________________________________________</u><br></div>
<div>erlang-questions mailing list<br></div>
<div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></div>
<div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
</blockquote><div><br></div>
</body>
</html>