1

通过 vagrant 在 Debian 8.2 中运行 stack/ghc 有一段时间了。今天早上:

$  stack setup
Run from outside a project, using implicit global project config
Using resolver: lts-4.2 from implicit global project's config file: /home/vagrant/.stack/global-project/stack.yaml
Downloading lts-4.2 build plan ...TlsExceptionHostPort (HandshakeFailed (Error_Protocol ("certificate has expired",True,CertificateExpired))) "raw.githubusercontent.com" 443

$  stack --version
Version 1.0.2, Git revision fa09a980d8bb3df88b2a9193cd9bf84cc6c419b3 (3084 commits) x86_64

即使我删除,同样的错误仍然存​​在~/.stack。我搞砸了什么吗?

4

1 回答 1

1

您可能想尝试运行stack -v setup以查看正在下载哪些文件。然后确定哪些文件因此无法下载TlsExceptionHostPort- 希望它们不会太多 - 并运行:

curl -0 https://raw.githubusercontent.com/path_to_your_file > your_file

下载阻止文件后,重新运行stack setup.

这可能不是一个干净的方法,但它对我有用。

于 2016-11-15T11:55:20.347 回答