将最新版本的流程构建为依赖项

Building the latest version of process as a dependency

为了能够取消 Windows 上的进程,我需要使用 this fix for process package,它仍未发布。我尝试将 github 的最新版本添加为我的 stack.yaml 文件中的依赖项:

packages:
- '.'
- location:
    git: https://github.com/haskell/process.git
    commit: 2fb7e739771f4a899a12b45f8b392e4874616b89
  extra-dep: true

但是 stack build 命令失败:

Process exited with code: ExitFailure 1
Logs have been written to: C:\Users\nadalesagutde\Documents\github\capitanbatata\sandbox\racing-turtles\.stack-work\logs\process-1.6.1.0.log

Configuring process-1.6.1.0...
Warning: The 'build-type' is 'Configure' but there is no 'configure' script.
You probably need to run 'autoreconf -i' to generate it.
setup.exe: configure script not found.

process的README中说autoreconf -i之前必须是运行,但我不知道如何告诉stack。我的 stack.yaml 文件中需要一些额外的配置吗?

看起来包的 git 仓库不包含直接使用包所需的 "configure" 脚本。从 hackage 下载时一切正常的原因是源代码分发确实包含配置脚本。令人沮丧!我认为对于使用 configure 的包来说,这是一个非典型的设计决策。我打开了这个堆栈问题:https://github.com/commercialhaskell/stack/issues/3534

建议的解决方法是将存储库克隆为子模块,然后手动 运行 autoreconf -i