[英]haskell-stack getting TlsExceptionHostPort error
Been running stack/ghc inside Debian 8.2 via vagrant for a while. 通过流浪汉在Debian 8.2中运行stack / ghc了一段时间。 This morning: 今天早上:
$ 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
The same error remains even if I delete ~/.stack
. 即使删除~/.stack
仍然存在相同的错误。 Did I mess something up? 我搞砸了吗?
You might want to try running stack -v setup
to be able to see which files are being downloaded. 您可能想尝试运行stack -v setup
以查看正在下载的文件。 Then identify which file(s) cannot be downloaded due to this TlsExceptionHostPort
- hopefully there won't be too many of them - and run: 然后确定由于该TlsExceptionHostPort
而无法下载哪些文件-希望它们不会太多-然后运行:
curl -0 https://raw.githubusercontent.com/path_to_your_file > your_file
Once your blocking file(s) have been downloaded, re-run stack setup
. 下载阻止文件后,重新运行stack setup
。
This might not be a clean approach, but it worked for me. 这可能不是一个干净的方法,但是对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.