简体   繁体   English

Haskell-stack正在给出“下载预期失败”

[英]Haskell-stack is giving “Download expectation failure”

I'm trying to use stack to build a project, and I'm receiving 'Download expectation failure' when running 'stack build'. 我正在尝试使用堆栈来构建项目,并且在运行“堆栈构建”时收到“下载期望失败”。

C:\Users\T60\Dropbox\notebooks-stack>stack build
Setting codepage to UTF-8 (65001) to ensure correct output from GHC
Download expectation failure: content hash (SHA512)
Expected: aa1178f08ad3364c504ee790dac9b0774b7461fa7ea0a8f2c3ad82943d109602debcf4
a8a83090815fef487ceac40019f8b5594ab0043f36e019d69bc5f76853 (ByteString)
Actual:   91f514e1731ef3c2063ff5ab6156242755b2b2b462d4a1f40f150d96cf714f7b7b5b19
c7705e5129bbb9876216ca86ff52e49cd7604d83e4b4150172c9bda228
For: https://s3.amazonaws.com:443/hackage.fpcomplete.com/package/SHA-1.6.4.2.tar
.gz
Pr

The relevant portion of my cabal file is: 我的集团档案的相关部分是:

  build-depends:       base >= 4.7 && < 5
                       , bytestring
                       , sqlite-simple
                       , time
                       , SHA

I've traced the error message to the show instance of VerifiedDownloadException in Verified.hs in the stack source code, but for what this actually means (something dumb in my cabal file, bad package on stackage, internal error in stack...) I have no idea. 我已将错误消息跟踪到堆栈源代码中VerifiedDownloadException中VerifiedDownloadException的show实例,但这实际上是什么意思(我的阴谋文件有点笨拙,堆栈上的包装不好,堆栈中的内部错误...)我不知道。

I'm running Windows 7 32-bit. 我正在运行32位Windows 7。

It turns out that this was a bug in stack, where a corrupted download would fail to be properly redownloaded. 事实证明,这是堆栈中的错误,其中损坏的下载将无法正确地重新下载。 It's been fixed in the latest builds. 它已在最新版本中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM