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
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.
2
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
1
Ljzn
Thanks, you are right.
1
Popular in Questions
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it.
I’m very interested in Elixir,...
New
I would like to know what is the best IDE for elixir development?
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
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
Other popular topics
Phoenix 1.4.0 released
Phoenix 1.4 is out! This release ships with exciting new features, most notably
with HTTP2 support, improved deve...
New
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
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
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New







