{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/7577","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7577/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7577/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7577/events","html_url":"https://github.com/elixir-lang/elixir/issues/7577","id":316484403,"number":7577,"title":"mix archive.install fails in fetching optional dependencies","user":{"login":"Eiji7","id":10956022,"avatar_url":"https://avatars2.githubusercontent.com/u/10956022?v=4","gravatar_id":"","url":"https://api.github.com/users/Eiji7","html_url":"https://github.com/Eiji7","followers_url":"https://api.github.com/users/Eiji7/followers","following_url":"https://api.github.com/users/Eiji7/following{/other_user}","gists_url":"https://api.github.com/users/Eiji7/gists{/gist_id}","starred_url":"https://api.github.com/users/Eiji7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eiji7/subscriptions","organizations_url":"https://api.github.com/users/Eiji7/orgs","repos_url":"https://api.github.com/users/Eiji7/repos","events_url":"https://api.github.com/users/Eiji7/events{/privacy}","received_events_url":"https://api.github.com/users/Eiji7/received_events","type":"User","site_admin":false},"labels":[{"id":10229539,"url":"https://api.github.com/repos/elixir-lang/elixir/labels/App:Mix","name":"App:Mix","color":"CCCCCC","default":false},{"id":207974,"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Kind:Bug","name":"Kind:Bug","color":"e10c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-21T11:33:51Z","updated_at":"2018-04-21T12:15:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Environment\r\n\r\n```elixir\r\n$ asdf current\r\nelixir         1.6.4-otp-20 (set by …) # checked also ref:master\r\nerlang         20.3.2  (set by …)\r\n```\r\nFuntoo Linux current x86-64bit on intel64-ivybridge\r\n\r\n### Current behavior\r\n\r\nInstalling archives from hex or git/github source fails in fetching optional dependencies.\r\n\r\nFor example `inch_ex` does not fails, but `ecto` or `phoenix` fails. \r\n\r\n### Expected behavior\r\n\r\nAll archives should be installed.\r\n\r\n### Example error\r\n\r\n```elixir\r\nmix archive.install hex phoenix\r\nResolving Hex dependencies...\r\nDependency resolution completed:\r\n  mime 1.2.0\r\n  phoenix 1.3.2\r\n  phoenix_pubsub 1.0.2\r\n  plug 1.5.0\r\n  poison 3.1.0\r\n* Getting phoenix (Hex package)\r\n* Getting phoenix_pubsub (Hex package)\r\n* Getting plug (Hex package)\r\n* Getting poison (Hex package)\r\n* Getting mime (Hex package)\r\nUnchecked dependencies for environment prod:\r\n* cowboy (Hex package)\r\n  the dependency is not available, run \"mix deps.get\"\r\n** (Mix) Can't continue due to errors on dependencies\r\n```"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/383290541","html_url":"https://github.com/elixir-lang/elixir/issues/7577#issuecomment-383290541","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7577","id":383290541,"user":{"login":"ericmj","id":316890,"avatar_url":"https://avatars3.githubusercontent.com/u/316890?v=4","gravatar_id":"","url":"https://api.github.com/users/ericmj","html_url":"https://github.com/ericmj","followers_url":"https://api.github.com/users/ericmj/followers","following_url":"https://api.github.com/users/ericmj/following{/other_user}","gists_url":"https://api.github.com/users/ericmj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmj/subscriptions","organizations_url":"https://api.github.com/users/ericmj/orgs","repos_url":"https://api.github.com/users/ericmj/repos","events_url":"https://api.github.com/users/ericmj/events{/privacy}","received_events_url":"https://api.github.com/users/ericmj/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T12:15:43Z","updated_at":"2018-04-21T12:15:43Z","author_association":"OWNER","body":"> No? https://hexdocs.pm/phoenix/installation.html#phoenix\r\necto was just another example for optional packages - i.e. I want to say that's not only phoenix-related problem\r\n\r\nYes :). The phoenix installer is a separate project that has no dependencies and works with `mix archive.install`.\r\n\r\n> I would like to install some packages (with mix tasks) as archives. Good examples here are credo or inch_ex. I could add them to every project or just install archives. I think that we should fetch all dependencies unless there is a good way to determine if any task requires optional dependencies.\r\n\r\nI would not recommend this. Archives will only work in special circumstances and if the project was not intended to be used as an archive it will likely not work well. Archives only use their dependencies during compilation so they will not be included in the archive itself because they would otherwise conflict with the dependencies in your projects. It's unlikely that credo and inch_ex will work correctly since they both use poison as dependency."}}
{"actor":{"display_login":"ericmj"}}