Maxximiliann

Maxximiliann

Mix deps.get: "fatal: Could not read from remote repository."

  defp deps do
    [
      {:httpoison, "~> 1.7.0"},
      {:postgrex, "~> 0.15.5"},
      {:ecto_sql, "~> 3.4.5"},
      {:gen_stage, "~> 1.0.0"},
      {:jason, "~> 1.2.1"},
      {:puid, "~> 1.1", git: "git@github.com:Rio517/Elixir.git"},
      {:parallel_task, "~> 0.1.0"}
    ]
  end
$ ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
# github.com:22 SSH-2.0-babeld-383743ad

$ git clone https://github.com/Rio517/Elixir.git
Cloning into 'Elixir'...
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 77 (delta 14), reused 20 (delta 11), pack-reused 48
Unpacking objects: 100% (77/77), 46.15 KiB | 1.71 MiB/s, done.


$ mix deps.get
* Updating puid (git@github.com:Rio517/Elixir.git)
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
** (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:124: 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

Solutions?

Most Liked

NobbZ

NobbZ

That will not change anything, as the top-levels applications :extra_applications is not consifered when resolving “boundaries” for its dependencies.

This warning has to be fixed in the dependency that causes it, though it is safe to ignore it for now and file an issue upstream.

evadne

evadne

SSH setup issue, need to set up a key pair on the build server and upload public key to GitHub

OR

If the dependency is in a public repo, change the reference from SSH URI to HTTPS URI

OR

Change from git: … to github: "user/repo" and let Mix do the right thing

Ljzn

Ljzn

Thanks, you are right.

Where Next?

Popular in Questions Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31013 112
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36352 110
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement