{"action":"opened","issue":{"url":"https://api.github.com/repos/hexpm/hex/issues/247","repository_url":"https://api.github.com/repos/hexpm/hex","labels_url":"https://api.github.com/repos/hexpm/hex/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/hexpm/hex/issues/247/comments","events_url":"https://api.github.com/repos/hexpm/hex/issues/247/events","html_url":"https://github.com/hexpm/hex/issues/247","id":163440312,"number":247,"title":"`lib/hex/scm.ex:85: Hex.SCM.checkout/1` error","user":{"login":"OvermindDL1","id":401605,"avatar_url":"https://avatars.githubusercontent.com/u/401605?v=3","gravatar_id":"","url":"https://api.github.com/users/OvermindDL1","html_url":"https://github.com/OvermindDL1","followers_url":"https://api.github.com/users/OvermindDL1/followers","following_url":"https://api.github.com/users/OvermindDL1/following{/other_user}","gists_url":"https://api.github.com/users/OvermindDL1/gists{/gist_id}","starred_url":"https://api.github.com/users/OvermindDL1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OvermindDL1/subscriptions","organizations_url":"https://api.github.com/users/OvermindDL1/orgs","repos_url":"https://api.github.com/users/OvermindDL1/repos","events_url":"https://api.github.com/users/OvermindDL1/events{/privacy}","received_events_url":"https://api.github.com/users/OvermindDL1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-01T17:27:41Z","updated_at":"2016-07-01T17:27:41Z","closed_at":null,"body":"Was asked by @ericmj from https://elixirforum.com/t/error-compiling-erlang-package-with-rebar/981/9 to report this bug that I ran across while I was messing around.\r\n\r\nTo reproduce:\r\n```bash\r\n$ mkdir ./testing_crash\r\n\r\n$ cd ./testing_crash\r\n\r\n$ cat mix.exs # I've reduced this to there being no other files in this directory\r\ndefmodule TestingCrash.Mixfile do\r\n  use Mix.Project\r\n\r\n  def project do\r\n    [app: :testing_crash,\r\n     version: \"0.1.0\",\r\n     elixir: \"~> 1.3\",\r\n     build_embedded: Mix.env == :prod,\r\n     start_permanent: Mix.env == :prod,\r\n     deps: deps()]\r\n  end\r\n\r\n  # Configuration for the OTP application\r\n  #\r\n  # Type \"mix help compile.app\" for more information\r\n  def application do\r\n    [applications: [:logger]]\r\n  end\r\n\r\n  # Dependencies can be Hex packages:\r\n  #\r\n  #   {:mydep, \"~> 0.3.0\"}\r\n  #\r\n  # Or git/path repositories:\r\n  #\r\n  #   {:mydep, git: \"https://github.com/elixir-lang/mydep.git\", tag: \"0.1.0\"}\r\n  #\r\n  # Type \"mix help deps\" for more examples and options\r\n  defp deps do\r\n    [\r\n      {:poolboy, \"~> 0.8.1-p3\", [hex: :basho_poolboy, manager: :rebar3]},\r\n      {:riak_core, \"~> 2.2\", [hex: :riak_core_ng, manager: :rebar3]}\r\n    ]\r\n  end\r\nend\r\n\r\n$ mix deps.get\r\nRunning dependency resolution\r\nDependency resolution completed\r\n  basho_poolboy: 0.8.1-p3\r\n  basho_stats: 1.0.3\r\n  bear: 0.8.3\r\n  chash: 0.1.1\r\n  clique: 3.0.1\r\n  cuttlefish: 2.0.7\r\n  edown: 0.7.0\r\n  eleveldb: 2.1.3\r\n  erocksdb: 0.4.0\r\n  exometer_core: 1.0.0\r\n  folsom: 0.8.3\r\n  getopt: 0.8.2\r\n  goldrush: 0.1.7\r\n  lager: 3.0.2\r\n  parse_trans: 2.9.0\r\n  pbkdf2: 2.0.0\r\n  riak_core_ng: 2.2.0\r\n  riak_ensemble: 2.1.3\r\n  riak_sysmon: 2.1.2\r\n  setup: 1.7.0\r\n* Getting poolboy (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/basho_poolboy-0.8.1-p3.tar)\r\n  Using locally cached package\r\n* Getting riak_core (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/riak_core_ng-2.2.0.tar)\r\n  Using locally cached package\r\n* Getting riak_sysmon (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/riak_sysmon-2.1.2.tar)\r\n  Using locally cached package\r\n* Getting riak_ensemble (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/riak_ensemble-2.1.3.tar)\r\n  Using locally cached package\r\n* Getting pbkdf2 (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/pbkdf2-2.0.0.tar)\r\n  Using locally cached package\r\n* Getting lager (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/lager-3.0.2.tar)\r\n  Using locally cached package\r\n* Getting goldrush (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/goldrush-0.1.7.tar)\r\n  Using locally cached package\r\n* Getting exometer_core (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/exometer_core-1.0.0.tar)\r\n  Using locally cached package\r\n* Getting erocksdb (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/erocksdb-0.4.0.tar)\r\n  Using locally cached package\r\n* Getting eleveldb (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/eleveldb-2.1.3.tar)\r\n  Using locally cached package\r\n* Getting edown (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/edown-0.7.0.tar)\r\n  Using locally cached package\r\n* Getting cuttlefish (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/cuttlefish-2.0.7.tar)\r\n  Using locally cached package\r\n* Getting clique (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/clique-3.0.1.tar)\r\n  Using locally cached package\r\n* Getting chash (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/chash-0.1.1.tar)\r\n  Using locally cached package\r\n* Getting basho_stats (Hex package)\r\n  Checking package (https://repo.hex.pm/tarballs/basho_stats-1.0.3.tar)\r\n  Using locally cached package\r\n* Getting basho_poolboy (Hex package)\r\n** (MatchError) no match of right hand side value: nil\r\n    (hex) lib/hex/scm.ex:85: Hex.SCM.checkout/1\r\n    (mix) lib/mix/dep/fetcher.ex:64: Mix.Dep.Fetcher.do_fetch/3\r\n    (mix) lib/mix/dep/converger.ex:174: Mix.Dep.Converger.all/9\r\n    (mix) lib/mix/dep/converger.ex:183: Mix.Dep.Converger.all/9\r\n    (mix) lib/mix/dep/converger.ex:114: Mix.Dep.Converger.all/7\r\n    (mix) lib/mix/dep/converger.ex:99: Mix.Dep.Converger.all/4\r\n    (mix) lib/mix/dep/converger.ex:50: Mix.Dep.Converger.converge/4\r\n    (mix) lib/mix/dep/fetcher.ex:16: Mix.Dep.Fetcher.all/3\r\n\r\n\r\n$ mix hex.info\r\nHex:    0.12.1\r\nElixir: 1.3.1\r\nOTP:    18.3\r\n\r\nBuilt with: Elixir 1.2.5 and OTP 18.3.3\r\n\r\nRegistry file available (last updated: 2016-07-01 11:24:40)\r\nFile size:   2321kB (compressed 758kb)\r\nMemory size: 6227kB\r\nFetch time:  1500ms\r\nLoad time:   31ms\r\nPackages #:  2314\r\nVersions #:  10570\r\n```\r\n\r\nSo in other words make an empty directory, put this into mix.exs:\r\n```elixir\r\ndefmodule TestingCrash.Mixfile do\r\n  use Mix.Project\r\n\r\n  def project do\r\n    [app: :testing_crash,\r\n     version: \"0.1.0\",\r\n     elixir: \"~> 1.3\",\r\n     build_embedded: Mix.env == :prod,\r\n     start_permanent: Mix.env == :prod,\r\n     deps: deps()]\r\n  end\r\n\r\n  # Configuration for the OTP application\r\n  #\r\n  # Type \"mix help compile.app\" for more information\r\n  def application do\r\n    [applications: [:logger]]\r\n  end\r\n\r\n  # Dependencies can be Hex packages:\r\n  #\r\n  #   {:mydep, \"~> 0.3.0\"}\r\n  #\r\n  # Or git/path repositories:\r\n  #\r\n  #   {:mydep, git: \"https://github.com/elixir-lang/mydep.git\", tag: \"0.1.0\"}\r\n  #\r\n  # Type \"mix help deps\" for more examples and options\r\n  defp deps do\r\n    [\r\n      {:poolboy, \"~> 0.8.1-p3\", [hex: :basho_poolboy, manager: :rebar3]},\r\n      {:riak_core, \"~> 2.2\", [hex: :riak_core_ng, manager: :rebar3]}\r\n    ]\r\n  end\r\nend\r\n```\r\nThen run `mix deps.get`.  Happens every time for me, new directories, full directories, empty directories other than the mix.exs file, etc....  The dependencies lines were copied from the above linked forum thread."}}
{"actor":{"display_login":"OvermindDL1"}}