代码之家  ›  专栏  ›  技术社区  ›  Damian Nadales

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

  •  2
  • Damian Nadales  · 技术社区  · 7 年前

    为了能够在Windows上取消进程,我需要使用 this fix 对于 process package 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.
    

    过程 声明如下: autoreconf -i 必须在之前运行,但我不知道如何告诉 stack 文件

    1 回复  |  直到 7 年前
        1
  •  2
  •   mgsloan    7 年前

    看起来包的git repo不包括“configure”脚本,直接使用包需要这个脚本。从hackage下载时工作正常的原因是源发行版确实包含配置脚本。令人沮丧的!我认为对于使用configure的包来说,这是一个非典型的设计决策。我已经打开了这个堆栈问题: https://github.com/commercialhaskell/stack/issues/3534

    autoreconf -i 手动。