{"action":"created","issue":{"url":"https://api.github.com/repos/kipcole9/money/issues/86","repository_url":"https://api.github.com/repos/kipcole9/money","labels_url":"https://api.github.com/repos/kipcole9/money/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/kipcole9/money/issues/86/comments","events_url":"https://api.github.com/repos/kipcole9/money/issues/86/events","html_url":"https://github.com/kipcole9/money/issues/86","id":372697760,"node_id":"MDU6SXNzdWUzNzI2OTc3NjA=","number":86,"title":"Compile error on status","user":{"login":"hl","id":1230555,"node_id":"MDQ6VXNlcjEyMzA1NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230555?v=4","gravatar_id":"","url":"https://api.github.com/users/hl","html_url":"https://github.com/hl","followers_url":"https://api.github.com/users/hl/followers","following_url":"https://api.github.com/users/hl/following{/other_user}","gists_url":"https://api.github.com/users/hl/gists{/gist_id}","starred_url":"https://api.github.com/users/hl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hl/subscriptions","organizations_url":"https://api.github.com/users/hl/orgs","repos_url":"https://api.github.com/users/hl/repos","events_url":"https://api.github.com/users/hl/events{/privacy}","received_events_url":"https://api.github.com/users/hl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-22T20:59:25Z","updated_at":"2018-10-22T21:11:38Z","closed_at":null,"author_association":"NONE","body":"Sometimes the `status` value contains the atom :compile instead of `{:ok, ecto_version}`, this has to do with https://github.com/elixir-lang/elixir/blob/master/lib/mix/lib/mix/dep.ex#L84-L88 part I believe.\r\n\r\nExample error:\r\n\r\n```\r\n➜  nexus git:(master) ✗ mix deps.compile ex_money\r\n==> ex_money\r\nCompiling 25 files (.ex)\r\n\r\n== Compilation error in file lib/money/migration.ex ==\r\n** (MatchError) no match of right hand side value: \r\n[\r\n  %Mix.Dep{\r\n    app: :ecto,\r\n    deps: [\r\n      %Mix.Dep{\r\n        app: :db_connection,\r\n        deps: [],\r\n        extra: [],\r\n        from: \"/Users/henricus/Code/nexus/deps/ecto/mix.exs\",\r\n        manager: nil,\r\n        opts: [\r\n          env: :prod,\r\n          build: \"/Users/henricus/Code/nexus/_build/dev/lib/db_connection\",\r\n          dest: \"/Users/henricus/Code/nexus/deps/db_connection\",\r\n          hex: \"db_connection\",\r\n          repo: \"hexpm\",\r\n          optional: true\r\n        ],\r\n        requirement: \"~> 1.1\",\r\n        scm: Hex.SCM,\r\n        status: {:ok, nil},\r\n        system_env: [],\r\n        top_level: false\r\n      },\r\n      %Mix.Dep{\r\n        app: :decimal,\r\n        deps: [],\r\n        extra: [],\r\n        from: \"/Users/henricus/Code/nexus/deps/ecto/mix.exs\",\r\n        manager: nil,\r\n        opts: [\r\n          env: :prod,\r\n          build: \"/Users/henricus/Code/nexus/_build/dev/lib/decimal\",\r\n          dest: \"/Users/henricus/Code/nexus/deps/decimal\",\r\n          hex: \"decimal\",\r\n          repo: \"hexpm\",\r\n          optional: false\r\n        ],\r\n        requirement: \"~> 1.2\",\r\n        scm: Hex.SCM,\r\n        status: {:ok, nil},\r\n        system_env: [],\r\n        top_level: false\r\n      },\r\n      %Mix.Dep{\r\n        app: :poison,\r\n        deps: [],\r\n        extra: [],\r\n        from: \"/Users/henricus/Code/nexus/deps/ecto/mix.exs\",\r\n        manager: nil,\r\n        opts: [\r\n          env: :prod,\r\n          build: \"/Users/henricus/Code/nexus/_build/dev/lib/poison\",\r\n          dest: \"/Users/henricus/Code/nexus/deps/poison\",\r\n          hex: \"poison\",\r\n          repo: \"hexpm\",\r\n          optional: true\r\n        ],\r\n        requirement: \"~> 2.2 or ~> 3.0\",\r\n        scm: Hex.SCM,\r\n        status: {:ok, nil},\r\n        system_env: [],\r\n        top_level: false\r\n      },\r\n      %Mix.Dep{\r\n        app: :poolboy,\r\n        deps: [],\r\n        extra: [],\r\n        from: \"/Users/henricus/Code/nexus/deps/ecto/mix.exs\",\r\n        manager: nil,\r\n        opts: [\r\n          env: :prod,\r\n          build: \"/Users/henricus/Code/nexus/_build/dev/lib/poolboy\",\r\n          dest: \"/Users/henricus/Code/nexus/deps/poolboy\",\r\n          hex: \"poolboy\",\r\n          repo: \"hexpm\",\r\n          optional: false\r\n        ],\r\n        requirement: \"~> 1.5\",\r\n        scm: Hex.SCM,\r\n        status: {:ok, nil},\r\n        system_env: [],\r\n        top_level: false\r\n      },\r\n      %Mix.Dep{\r\n        app: :postgrex,\r\n        deps: [],\r\n        extra: [],\r\n        from: \"/Users/henricus/Code/nexus/deps/ecto/mix.exs\",\r\n        manager: nil,\r\n        opts: [\r\n          env: :prod,\r\n          build: \"/Users/henricus/Code/nexus/_build/dev/lib/postgrex\",\r\n          dest: \"/Users/henricus/Code/nexus/deps/postgrex\",\r\n          hex: \"postgrex\",\r\n          repo: \"hexpm\",\r\n          optional: true\r\n        ],\r\n        requirement: \"~> 0.13.0\",\r\n        scm: Hex.SCM,\r\n        status: {:ok, nil},\r\n        system_env: [],\r\n        top_level: false\r\n      }\r\n    ],\r\n    extra: [],\r\n    from: \"/Users/henricus/Code/nexus/mix.exs\",\r\n    manager: :mix,\r\n    opts: [\r\n      optional: true,\r\n      lock:\r\n        {:hex, :ecto, \"2.2.11\",\r\n         \"4bb8f11718b72ba97a2696f65d247a379e739a0ecabf6a13ad1face79844791c\", [:mix],\r\n         [\r\n           {:db_connection, \"~> 1.1\", [hex: :db_connection, repo: \"hexpm\", optional: true]},\r\n           {:decimal, \"~> 1.2\", [hex: :decimal, repo: \"hexpm\", optional: false]},\r\n           {:mariaex, \"~> 0.8.0\", [hex: :mariaex, repo: \"hexpm\", optional: true]},\r\n           {:poison, \"~> 2.2 or ~> 3.0\", [hex: :poison, repo: \"hexpm\", optional: true]},\r\n           {:poolboy, \"~> 1.5\", [hex: :poolboy, repo: \"hexpm\", optional: false]},\r\n           {:postgrex, \"~> 0.13.0\", [hex: :postgrex, repo: \"hexpm\", optional: true]},\r\n           {:sbroker, \"~> 1.0\", [hex: :sbroker, repo: \"hexpm\", optional: true]}\r\n         ], \"hexpm\"},\r\n      env: :prod,\r\n      repo: \"hexpm\",\r\n      hex: \"ecto\",\r\n      build: \"/Users/henricus/Code/nexus/_build/dev/lib/ecto\",\r\n      dest: \"/Users/henricus/Code/nexus/deps/ecto\"\r\n    ],\r\n    requirement: \"~> 2.2\",\r\n    scm: Hex.SCM,\r\n    status: :compile,\r\n    system_env: [],\r\n    top_level: true\r\n  }\r\n]\r\n    lib/money/migration.ex:4: (module)\r\n    (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6\r\ncould not compile dependency :ex_money, \"mix compile\" failed. You can recompile this dependency with \"mix deps.compile ex_money\", update it with \"mix deps.update ex_money\" or clean it with \"mix deps.clean ex_money\"\r\n```"},"comment":{"url":"https://api.github.com/repos/kipcole9/money/issues/comments/431988309","html_url":"https://github.com/kipcole9/money/issues/86#issuecomment-431988309","issue_url":"https://api.github.com/repos/kipcole9/money/issues/86","id":431988309,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTk4ODMwOQ==","user":{"login":"kipcole9","id":15895,"node_id":"MDQ6VXNlcjE1ODk1","avatar_url":"https://avatars2.githubusercontent.com/u/15895?v=4","gravatar_id":"","url":"https://api.github.com/users/kipcole9","html_url":"https://github.com/kipcole9","followers_url":"https://api.github.com/users/kipcole9/followers","following_url":"https://api.github.com/users/kipcole9/following{/other_user}","gists_url":"https://api.github.com/users/kipcole9/gists{/gist_id}","starred_url":"https://api.github.com/users/kipcole9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipcole9/subscriptions","organizations_url":"https://api.github.com/users/kipcole9/orgs","repos_url":"https://api.github.com/users/kipcole9/repos","events_url":"https://api.github.com/users/kipcole9/events{/privacy}","received_events_url":"https://api.github.com/users/kipcole9/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T21:11:37Z","updated_at":"2018-10-22T21:11:37Z","author_association":"OWNER","body":"@hl Apologies for the inconvenience.  \r\n\r\nI need to know the version of Ecto being loaded so that I can determine which function to call to use to get the migrations path (it changed from Ecto version to Ecto version 3).  Looks like this is not the right way.\r\n\r\nI'm revisiting this right now.  Thanks for the issue report."}}
{"actor":{"display_login":"kipcole9"}}