phoenixframework / phoenix_ecto

Phoenix and Ecto integration with support for concurrent acceptance testing
MIT License
472 stars 119 forks source link

Trying to upgrade phoenix and Liveview to latest versions, dependency error with phoenix_html #145

Closed evansorenson closed 2 years ago

evansorenson commented 2 years ago

I was trying to upgrade phoenix and Liveview to take advantage of the cool new features Chris talked about at ElixirConf today. But I kept getting the below error, saying the phoenix Ecto requires phoenix_html 2.9 while the latest phoenix and Liveview versions need phoenix_html 3.0. Is this being worked on or am I doing something wrong? I have listed my deps below the error.

Failed to use "phoenix_html" because apps/gamenite_web/mix.exs requires ~> 3.0 phoenix_ecto (version 4.0.0) requires ~> 2.9

defp deps do
    [
      {:phoenix, "~> 1.6.2"},
      {:phoenix_ecto, "~> 4.0"},
      {:phoenix_html, "~> 3.0"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:phoenix_live_dashboard, "~> 0.5"},
      {:jason, "~> 1.0"},
      {:plug_cowboy, "~> 2.0"},
      {:stun, "~> 1.0"},
      {:phoenix_live_view, "~> 0.16.4"},
      {:floki, ">= 0.27.0", only: :test},
      {:telemetry_metrics, "~> 0.4"},
      {:telemetry_poller, "~> 0.4"},
      {:gettext, "~> 0.11"},
      {:gamenite_persistance, in_umbrella: true},
      {:gamenite, in_umbrella: true},
    ]
  end
josevalim commented 2 years ago

Running mix deps.unlock phoenix_ecto so it can pick up new versions should do the trick. Or manually update the requirements for this package.

evansorenson commented 2 years ago

Got it thanks!

I was updating manually and the readme says 4.0 so I thought it was the latest version, but alas it's 4.4.

Installation You can install phoenix_ecto by adding it to your list of dependencies in mix.exs:

def deps do [{:phoenix_ecto, "~> 4.0"}] end

josevalim commented 2 years ago

~> 4.0 will also pick 4.4.0 but once it was locked you may need to unlock it. :)