No able to use it in Phoenix 1.3
MatUrbanski opened this issue · comments
Mateusz Urbański commented
When I running mix deps.get
in my Phoenix 1.3 app it returns me following error:
Running dependency resolution...
Failed to use "geocoder" because
mix.exs specifies ~> 0.7
** (Mix) Hex dependency resolution failed, relax the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}
Carsten Zimmermann commented
Hey @MatUrbanski, can you post your mix.exs
?
Mateusz Urbański commented
My mix.exs
looks like this:
defmodule TattooBackend.Mixfile do
use Mix.Project
def project do
[app: :tattoo_backend,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {TattooBackend.Application, []},
extra_applications: [:logger, :runtime_tools]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[{:phoenix, "~> 1.3.0-rc"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:credo, "~> 0.7.4", only: [:dev, :test], runtime: false},
{:ex_machina, "~> 2.0", only: :test},
{:comeonin, "~> 3.0"},
{:bamboo, "~> 0.8"},
{:phoenix_html, "~> 2.6"},
{:geocoder, "~> 0.7"}]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end
Mateusz Urbański commented
@carpodaster Any update on this?
Carsten Zimmermann commented
Hey @MatUrbanski and thanks for pinging me. The latest version on hex.pm is 0.6.2; v0.7 has not been released, yet (yes, yes, we need to do that :) ).
You can either point your mix.exs to ~> 0.6.2
or add github: "knrz/geocoder"
to use HEAD (potentially unstable).