堆栈安装 codecov-haskell 失败并出现错误
stack install codecov-haskell failed with error
我正在尝试使用 stack install codecov-haskell -v
安装 codecov-haskell via stack,但出现以下错误:
2019-10-07 19:31:22.039891: [info] codecov-haskell> build
2019-10-07 19:31:22.040092: [debug] Run process within /tmp/stack30689/codecov-haskell-0.5.0/: /home/mkultra/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
2019-10-07 19:31:22.129625: [info] codecov-haskell> Preprocessing library for codecov-haskell-0.5.0..
2019-10-07 19:31:22.129758: [info] codecov-haskell> Building library for codecov-haskell-0.5.0..
2019-10-07 19:31:22.264569: [warn] codecov-haskell>
2019-10-07 19:31:22.264773: [warn] codecov-haskell> <no location info>: warning: [-Wmissing-home-modules]
2019-10-07 19:31:22.264869: [warn] codecov-haskell> These modules are needed for compilation but not listed in your .cabal file's other-modules:
2019-10-07 19:31:22.264938: [warn] codecov-haskell> Paths_codecov_haskell
2019-10-07 19:31:22.265078: [info] codecov-haskell> [1 of 9] Compiling Paths_codecov_haskell
2019-10-07 19:31:22.494452: [info] codecov-haskell> [2 of 9] Compiling Trace.Hpc.Codecov.Config
2019-10-07 19:31:22.534420: [info] codecov-haskell> [3 of 9] Compiling Trace.Hpc.Codecov.Paths
2019-10-07 19:31:22.714734: [info] codecov-haskell> [4 of 9] Compiling CodecovHaskellCmdLine
2019-10-07 19:31:24.097299: [info] codecov-haskell> [5 of 9] Compiling Trace.Hpc.Codecov.Types
2019-10-07 19:31:24.245865: [info] codecov-haskell> [6 of 9] Compiling Trace.Hpc.Codecov.Curl
2019-10-07 19:31:25.632324: [warn] codecov-haskell>
2019-10-07 19:31:25.632698: [warn] codecov-haskell> /tmp/stack30689/codecov-haskell-0.5.0/src/Trace/Hpc/Codecov/Curl.hs:55:20: error:
2019-10-07 19:31:25.632804: [warn] codecov-haskell> • Couldn't match type ‘IO (Maybe a)’
2019-10-07 19:31:25.632879: [warn] codecov-haskell> with ‘RetryStatus -> IO (Maybe a)’
2019-10-07 19:31:25.632955: [warn] codecov-haskell> Expected type: IO (Maybe a) -> IO (Maybe a)
2019-10-07 19:31:25.633025: [warn] codecov-haskell> Actual type: (RetryStatus -> IO (Maybe a)) -> IO (Maybe a)
2019-10-07 19:31:25.633090: [warn] codecov-haskell> • In the expression: retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633165: [warn] codecov-haskell> In an equation for ‘performWithRetry’:
2019-10-07 19:31:25.633236: [warn] codecov-haskell> performWithRetry
2019-10-07 19:31:25.633310: [warn] codecov-haskell> = retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633382: [warn] codecov-haskell> where
2019-10-07 19:31:25.633464: [warn] codecov-haskell> isNothingM _ = return . isNothing
2019-10-07 19:31:25.633537: [warn] codecov-haskell> • Relevant bindings include
2019-10-07 19:31:25.633610: [warn] codecov-haskell> performWithRetry :: IO (Maybe a) -> IO (Maybe a)
2019-10-07 19:31:25.633685: [warn] codecov-haskell> (bound at src/Trace/Hpc/Codecov/Curl.hs:55:1)
2019-10-07 19:31:25.633758: [warn] codecov-haskell> |
2019-10-07 19:31:25.633831: [warn] codecov-haskell> 55 | performWithRetry = retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633905: [warn] codecov-haskell> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-07 19:31:25.703733: [warn] codecov-haskell>
2019-10-07 19:31:25.703992: [info] Completed 2 action(s).
2019-10-07 19:31:25.794909: [error]
-- While building package codecov-haskell-0.5.0 using:
/home/mkultra/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
我在使用 cabal install codecov-haskell
时遇到了类似的错误,在使用 stack install codecov-haskell
时在 CI 上遇到了同样的错误。
以前我在本地机器上安装 codecov-haskell 时有一个 。在 CI 上没有任何问题。
有什么建议吗?
Stack version: 2.1.3
Description: Ubuntu 19.04
有一个 bug and merge request 准备从 2017 年 7 月 26 日开始合并。
看来作者不再支持这个项目了
您可以通过在 cabal 和堆栈中执行类似的操作来解决此问题:
resolver: lts-13.25
extra-deps:
- github: guillaume-nargeot/codecov-haskell
commit: 8448801f8d01624e4cd60420beb3fdc85c099576
packages:
- .
您基本上将来自 github 的特定提交锚定为实际编译的依赖项!
我正在尝试使用 stack install codecov-haskell -v
安装 codecov-haskell via stack,但出现以下错误:
2019-10-07 19:31:22.039891: [info] codecov-haskell> build
2019-10-07 19:31:22.040092: [debug] Run process within /tmp/stack30689/codecov-haskell-0.5.0/: /home/mkultra/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
2019-10-07 19:31:22.129625: [info] codecov-haskell> Preprocessing library for codecov-haskell-0.5.0..
2019-10-07 19:31:22.129758: [info] codecov-haskell> Building library for codecov-haskell-0.5.0..
2019-10-07 19:31:22.264569: [warn] codecov-haskell>
2019-10-07 19:31:22.264773: [warn] codecov-haskell> <no location info>: warning: [-Wmissing-home-modules]
2019-10-07 19:31:22.264869: [warn] codecov-haskell> These modules are needed for compilation but not listed in your .cabal file's other-modules:
2019-10-07 19:31:22.264938: [warn] codecov-haskell> Paths_codecov_haskell
2019-10-07 19:31:22.265078: [info] codecov-haskell> [1 of 9] Compiling Paths_codecov_haskell
2019-10-07 19:31:22.494452: [info] codecov-haskell> [2 of 9] Compiling Trace.Hpc.Codecov.Config
2019-10-07 19:31:22.534420: [info] codecov-haskell> [3 of 9] Compiling Trace.Hpc.Codecov.Paths
2019-10-07 19:31:22.714734: [info] codecov-haskell> [4 of 9] Compiling CodecovHaskellCmdLine
2019-10-07 19:31:24.097299: [info] codecov-haskell> [5 of 9] Compiling Trace.Hpc.Codecov.Types
2019-10-07 19:31:24.245865: [info] codecov-haskell> [6 of 9] Compiling Trace.Hpc.Codecov.Curl
2019-10-07 19:31:25.632324: [warn] codecov-haskell>
2019-10-07 19:31:25.632698: [warn] codecov-haskell> /tmp/stack30689/codecov-haskell-0.5.0/src/Trace/Hpc/Codecov/Curl.hs:55:20: error:
2019-10-07 19:31:25.632804: [warn] codecov-haskell> • Couldn't match type ‘IO (Maybe a)’
2019-10-07 19:31:25.632879: [warn] codecov-haskell> with ‘RetryStatus -> IO (Maybe a)’
2019-10-07 19:31:25.632955: [warn] codecov-haskell> Expected type: IO (Maybe a) -> IO (Maybe a)
2019-10-07 19:31:25.633025: [warn] codecov-haskell> Actual type: (RetryStatus -> IO (Maybe a)) -> IO (Maybe a)
2019-10-07 19:31:25.633090: [warn] codecov-haskell> • In the expression: retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633165: [warn] codecov-haskell> In an equation for ‘performWithRetry’:
2019-10-07 19:31:25.633236: [warn] codecov-haskell> performWithRetry
2019-10-07 19:31:25.633310: [warn] codecov-haskell> = retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633382: [warn] codecov-haskell> where
2019-10-07 19:31:25.633464: [warn] codecov-haskell> isNothingM _ = return . isNothing
2019-10-07 19:31:25.633537: [warn] codecov-haskell> • Relevant bindings include
2019-10-07 19:31:25.633610: [warn] codecov-haskell> performWithRetry :: IO (Maybe a) -> IO (Maybe a)
2019-10-07 19:31:25.633685: [warn] codecov-haskell> (bound at src/Trace/Hpc/Codecov/Curl.hs:55:1)
2019-10-07 19:31:25.633758: [warn] codecov-haskell> |
2019-10-07 19:31:25.633831: [warn] codecov-haskell> 55 | performWithRetry = retrying expRetryPolicy isNothingM
2019-10-07 19:31:25.633905: [warn] codecov-haskell> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-07 19:31:25.703733: [warn] codecov-haskell>
2019-10-07 19:31:25.703992: [info] Completed 2 action(s).
2019-10-07 19:31:25.794909: [error]
-- While building package codecov-haskell-0.5.0 using:
/home/mkultra/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
我在使用 cabal install codecov-haskell
时遇到了类似的错误,在使用 stack install codecov-haskell
时在 CI 上遇到了同样的错误。
以前我在本地机器上安装 codecov-haskell 时有一个
有什么建议吗?
Stack version: 2.1.3
Description: Ubuntu 19.04
有一个 bug and merge request 准备从 2017 年 7 月 26 日开始合并。
看来作者不再支持这个项目了
您可以通过在 cabal 和堆栈中执行类似的操作来解决此问题:
resolver: lts-13.25
extra-deps:
- github: guillaume-nargeot/codecov-haskell
commit: 8448801f8d01624e4cd60420beb3fdc85c099576
packages:
- .
您基本上将来自 github 的特定提交锚定为实际编译的依赖项!