phoenixframework / phoenix

Peace of mind from prototype to production
https://www.phoenixframework.org
MIT License
21.46k stars 2.88k forks source link

phx.new - Fix deprecation warning when using Elixir ~> 1.18 #5940

Closed psantos10 closed 1 month ago

psantos10 commented 2 months ago

When generating a new application using Elixir 1.18.0-dev, this warning is raised:

Compiling 1 file (.ex) warning: Mix.Rebar.rebar_cmd/1 is deprecated. Use rebar_args/2 or available?/1 instead │ 275 │ Mix.Rebar.rebar_cmd(:rebar3) │ ~ │ └─ lib/mix/tasks/phx.new.ex:275:17: Mix.Tasks.Phx.New.rebar_available?/0

Not sure if this is a good practice, but that's I come up with.

josevalim commented 1 month ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: