Updating results in error
Description
[Description of the issue]
Steps to Reproduce
- git pull
- MIX_ENV=prod mix deps.get
- -error occurs-
Expected behaviour:
All packages are updated or installed.
Actual behaviour:
Error is thrown and installation fails.
Reproduces how often:
Low percentage. Happened going from 1.0.3-8 to 1.0.3-102-gf891b517.
Versions
1.0.3-102-gf891b517
Additional Information
error:
mobilizon@computer:~/live$ MIX_ENV=prod mix deps.get
* Updating absinthe_phoenix (https://github.com/tcitworld/absinthe_phoenix.git - origin/patch-1)
fatal: reference is not a tree: 4759d4141fb6254f5e7726ad6a00d7618116fb9e
** (Protocol.UndefinedError) protocol String.Chars not implemented for %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: false} of type IO.Stream (a struct)
(elixir 1.11.2) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.11.2) lib/string/chars.ex:22: String.Chars.to_string/1
(mix 1.11.2) lib/mix/scm/git.ex:274: Mix.SCM.Git.git!/2
(mix 1.11.2) lib/mix/scm/git.ex:128: Mix.SCM.Git.checkout/2
(elixir 1.11.2) lib/file.ex:1552: File.cd!/2
(mix 1.11.2) lib/mix/dep/fetcher.ex:61: Mix.Dep.Fetcher.do_fetch/3
(mix 1.11.2) lib/mix/dep/converger.ex:190: Mix.Dep.Converger.all/9
(mix 1.11.2) lib/mix/dep/converger.ex:201: Mix.Dep.Converger.all/9
mix.lock:
"absinthe_phoenix": {:git, "https://github.com/tcitworld/absinthe_phoenix.git", "4759d4141fb6254f5e7726ad6a00d7618116fb9e", [branch: "patch-1"]},
mix.exs:
{:absinthe, "~> 1.6"},
{:absinthe_phoenix, github: "tcitworld/absinthe_phoenix", branch: "patch-1"},
{:absinthe_plug, "~> 1.5.0"},
After looking closer, the branch "patch-1" does not exist. So I changed it to master. Had to edit absinthe_phoenix
to:
{:absinthe_phoenix, github: "tcitworld/absinthe_phoenix", branch: "master"},
And change "deps/absinthe_phoenix/mix.exs" from {:absinthe, "~> 1.5.0"},
to {:absinthe, "~> 1.5.0 or ~> 1.6.0"},
.
Then I could finally MIX_ENV=prod mix deps.get
.