[erlang-questions] [ANN] Ranch 1.3
Tristan Sloughter
t@REDACTED
Tue Nov 29 21:43:32 CET 2016
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).
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.
Changing the version of a package a dependency depends on is taking
responsibility for that dependency.
--
Tristan Sloughter
t@REDACTED
On Tue, Nov 29, 2016, at 12:34 PM, duncan@REDACTED wrote:
>
> I use cowboy and cowboy has a dependency on ranch.
>
> 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."
>
> If I rebar3 upgrade cowboy", it tells me "No upgrade needed for
> cowboy, ..., No upgrade needed for ranch".
>
> 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).
> Does rebar3 have an 'force upgrading dependencies' option? Or is there
> some other trick I could do?
>
> Duncan Sparrell
> s-Fractal Consulting LLC
> iPhone, iTypo, iApologize
>
>> -------- Original Message -------- Subject: Re: [erlang-questions]
>> [ANN] Ranch 1.3 From: Loïc_Hoguin <essen@REDACTED> Date: Tue,
>> November 29, 2016 12:37 pm To: Max Lapshin <max.lapshin@REDACTED>,
>> Garry Hodgson <garryh@REDACTED> Cc: Garry Hodgson
>> <garry@REDACTED>, Erlang Questions <erlang-
>> questions@REDACTED>
>>
>> Up to you. :-)
>>
>> Ranch 1.3 isn't very different so it should be pretty painless to
>> update.
>>
>> On 11/29/2016 05:49 PM, Max Lapshin wrote:
>> > So it is a good idea first to upgrade ranch and then go with beta
>> > cowboy to production in a week later?
>>
>> --
>> Loïc Hoguin https://ninenines.eu
>> _______________________________________________
>> erlang-questions mailing list erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
> _________________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161129/1e680108/attachment.htm>
More information about the erlang-questions
mailing list