4

至少 2 周前,我一直在代理后面使用mix 。但是我发现昨天混合变得无法在代理后面工作。混合版本是 1.1.1。混合 local.hex 运行。但是 mix deps.get 会出现错误。

$ mix deps.get
Registry update failed (http_error)
{:failed_connect, [{:to_address, {'s3.amazonaws.com', 443}}, {:inet, [:inet], :nxdomain}]}
Running dependency resolution
Dependency resolution completed successfully
  combine: v0.5.3
  floki: v0.6.1
  hackney: v1.3.2
  httpoison: v0.7.4
  idna: v1.0.2
  mochiweb: v2.12.2
  ssl_verify_hostname: v1.0.5
  timex: v0.19.5
  tzdata: v0.5.4
* Getting httpoison (Hex package)
Checking package (https://s3.amazonaws.com/s3.hex.pm/tarballs/httpoison-0.7.4.tar)
Request failed: {:failed_connect, [{:to_address, {'s3.amazonaws.com', 443}}, {:inet, [:inet], :nxdomain}]}
** (Mix) Package fetch failed and no cached copy available

代理由 HTTP_PROXY 和 HTTPS_PROXY 设置。我还将 .gitconfig 设置为;

[http]
  proxy = http://proxy.mycompany.co.jp:10080
[https]
  proxy = http://proxy.mycompany.co.jp:10080
[url "https://"]
  insteadOf = git://

是代理本身的问题吗?是否有一些解决方法?

4

1 回答 1

5

这是上一个 Hex 版本的回归,它应该在下一个版本中修复(可能在本周末)。您可以通过克隆https://github.com/hexpm/hex并运行mix install以安装开发版本来解决它。mix local.hex将恢复稳定。

于 2015-11-25T00:21:10.327 回答