Skip to content

Instantly share code, notes, and snippets.

@thegrubbsian
Created August 4, 2014 01:23
Show Gist options
  • Save thegrubbsian/077ba349182082291257 to your computer and use it in GitHub Desktop.
Save thegrubbsian/077ba349182082291257 to your computer and use it in GitHub Desktop.
Phoenix compile issue
tasks> mix compile
Unchecked dependencies for environment dev:
* cowboy (package)
the dependency cowboy in mix.exs is overriding a child dependency:
> In mix.exs:
{:cowboy, "~> 1.0.0", [hex_app: :cowboy]}
> In deps/phoenix/mix.exs:
{:cowboy, "~> 0.10.0", [git: "git://github.com/extend/cowboy.git", optional: true]}
Ensure they match or specify one of the above in your Tasks.Mixfile deps and set `override: true`
** (Mix) Can't continue due to errors on dependencies
tasks>
defmodule Tasks.Mixfile do
use Mix.Project
def project do
[ app: :tasks,
version: "0.0.1",
elixir: "~> 0.15.0",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
def application do
[
mod: { Tasks, [] },
applications: [:phoenix, :postgrex, :ecto]
]
end
defp deps do
[
{:ecto, "~> 0.2.3"},
{:jsex, "~> 2.0.0"},
{:cowboy, "~> 1.0.0"},
{:phoenix, github: "phoenixframework/phoenix"},
{:phoenix_haml, "~> 0.0.2"},
{:postgrex, "~> 0.5.4"}
]
end
end
@nodepond
Copy link

Hm, I have the same here with the mariaex dependency. Even when I modify the files - modifications to (in my case) deps/ecto/mix.exs are nor reflected. Anyone an idea about this?

@nodepond
Copy link

Still messing around, but 'mix deps.compile' and 'mix deps.clean' could be helpful for anyone else, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment