- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将覆盖范围添加到我的项目中,但是
不断遇到问题。
我尝试了错误中的所有建议
此列表底部的消息。
我有一个大型项目,希望扩大报道范围
进行单元测试,但是所有保险范围内的炸弹
相似地。
我启动了一个干净的项目“bug”,仅使用混合deps()
另外,这样可以将干扰降到最低。
任何帮助,将不胜感激。
版本:
rebar3 --version
rebar 3.13.2 on Erlang/OTP 22 Erts 10.4.3
elixir --version
Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Elixir 1.9.4 (compiled with Erlang/OTP 22)
erl --version
Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Eshell V10.4.3 (abort with ^G)
defp deps() do
[
#{:coverex, "~> 1.5", only: [:test], runtime: false},
{:excoveralls, "~> 0.13.0", only: [:test], runtime: false},
{:idna, "~> 6.0.1"},
]
end
"Bad dependency version for httpoison (and others...)"
=> mix clean
=> mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
certifi 2.5.2
excoveralls 0.13.0
hackney 1.16.0
idna 6.0.1 # Below it says idna 6.0.1 not found - why?
jason 1.2.1
metrics 1.0.1
mimerl 1.2.0
parse_trans 3.3.0
ssl_verify_fun 1.1.6
unicode_util_compat 0.5.0
All dependencies are up to date
Command completed
=> mix test # Try to run default test on a new repo
===> Package idna-6.0.1 not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /home/cecilm/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [appsignal:1.6.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [batch_loader:0.1.0-beta.4], Bad dependency version for absinthe: ~> 1.4.0 or ~> 1.5.0-beta.
===> [prometheus_httpd:2.1.10], Bad dependency version for prometheus: ~> 3.5 or ~> 4.2.
===> [batch_loader:0.1.0-beta.5], Bad dependency version for absinthe: ~> 1.4.0 or ~> 1.5.0-beta.
===> [appsignal:1.7.0-alpha.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [batch_loader:0.1.0-beta.6], Bad dependency version for absinthe: ~> 1.4.0 or ~> 1.5.0-beta.
===> [appsignal:1.12.0], Bad dependency version for decorator: ~> 1.2.3 or ~> 1.3.
===> [appsignal:1.6.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.5], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.7], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [batch_loader:0.1.0-beta.3], Bad dependency version for absinthe: ~> 1.4.0 or ~> 1.5.0-beta.
===> [appsignal:1.6.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> Writing index to /home/cecilm/.cache/rebar3/hex/default/packages.idx
===> Package not found in registry: {<<"idna">>,<<"6.0.1">>}.
(Mix) Could not compile dependency :hackney, "/home/cecilm/.mix/rebar3 bare
compile --paths="/home/cecilm/play/Elixir/bug/_build/test/lib/*/ebin"" command
failed. You can recompile this dependency with "mix deps.compile hackney",
update it with "mix deps.update hackney" or clean it with "mix deps.clean
hackney"
最佳答案
这是Erlang的rebar
软件包管理器和idna
依赖项的兼容性问题。您需要通过运行来更新项目中的钢筋
mix local.rebar
在命令行中。这应该可以解决问题。
关于dependencies - Elixir "Package not found in registry: :hackney"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62160503/
我正在尝试调用我正在使用 Hackney 开发的 API。 此 API 是一个 Rails 应用程序,为了开发,我使用 nginx 和 passenger 来为其提供服务,并且我使用 etcd_ca
当我尝试时: HTTPoison.get! "https://facebook.com" 我得到: ** (HTTPoison.Error) {:tls_alert, 'unknown ca'} [e
我正在尝试将覆盖范围添加到我的项目中,但是 不断遇到问题。 我尝试了错误中的所有建议 此列表底部的消息。 我有一个大型项目,希望扩大报道范围 进行单元测试,但是所有保险范围内的炸弹 相似地。 我启动了
我正在制作 post使用 hackney 在 Elixir 中请求,它似乎运行正常,但在接收服务上,主体是空的。 是否有我缺少的 hackney 选项?我试过将正文作为字符列表和 native 字符串
我有一个客户端使用分块的 HTTP 响应。 HTTPoison.request(method, url, body, headers, stream_to: self(), timeout: 50_0
我是一名优秀的程序员,十分优秀!