sourcevault
Running 'mix deps.get' tells me "fatal: could not read Username for 'https://github.com': Inappropriate ioctl for device"
Hi !
I installed Elixir on “Windows Subsystem for Linux”.
I am getting a weird error that I am unable to troubleshoot.
I ran the mix tutorial on creating a minimal module “kv”.
mix compile
Unchecked dependencies for environment dev:
* dep_from_git (https://github.com/elixir-lang/my_dep.git)
the dependency is not available, run "mix deps.get"
* dep_from_hexpm (Hex package)
the dependency is not available, run "mix deps.get"
** (Mix) Can't continue due to errors on dependencies
I then ran mix deps.get as suggested.
mix deps.get
* Updating dep_from_git (https://github.com/elixir-lang/my_dep.git)
fatal: could not read Username for 'https://github.com': Inappropriate ioctl for device
** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed
I am kind of stuck what to do ![]()
Cheers !
Most Liked
leifericf
Hmmm. Could you share what the contents of your mix.exs looks like?
If you’re following this tutorial, it should look like this:
defmodule KV.MixProject do
use Mix.Project
def project do
[
app: :kv,
version: "0.1.0",
elixir: "~> 1.6-dev",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
]
end
end
Notice that the two lines inside of deps should be commented out (starting with a #):
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
]
end
It seems like maybe the two lines in this function might not be commented out in your case?
That’s a more-or-less wild guess and I’m not sure if that’s the issue.
NobbZ
Those 2 are just example entries. They do not actually exist on GitHub nor hex.
sourcevault
Hi !
I think I answered some of my questions.
mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
New:
cortex 0.5.0
file_system 0.2.6
* Getting cortex (Hex package)
* Getting file_system (Hex package)
so is hex only available through mix ?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








