michalmuskala / jason

A blazing fast JSON parser and generator in pure Elixir.
Other
1.58k stars 168 forks source link

fails to install in rebar3 #163

Closed ityonemo closed 2 months ago

ityonemo commented 1 year ago

adding the dependency in a rebar3 project using:

{plugins, [rebar_mix]}.
{provider_hooks, [
  {post, [{compile, {mix, consolidate_protocols}}]}
]}.
{deps, [jason]}.

fails due to the error: Dep decimal has invalid version ~> 1.0 or ~> 2.0

is this a Jason problem or is this a rebar3 problem?

michalmuskala commented 1 year ago

This looks like a rebar3 problem. ~> 1.0 or ~> 2.0 is a valid version constraint in mix

filmor commented 2 months ago

This is "fixed" in rebar3 3.23, https://github.com/erlang/rebar3/pull/2840.