Skip to content
  • Peter Becich's avatar
    5e8fd4b9
    Implement Response File support for HPC · 5e8fd4b9
    Peter Becich authored and Matthew Pickering's avatar Matthew Pickering committed
    This is an improvement to HPC authored by Richard Wallace
    (https://github.com/purefn) and myself. I have received permission from
    him to attempt to upstream it. This improvement was originally
    implemented as a patch to HPC via input-output-hk/haskell.nix:
    https://github.com/input-output-hk/haskell.nix/pull/1464
    
    
    
    Paraphrasing Richard, HPC currently requires all inputs as command line arguments.
    With large projects this can result in an argument list too long error.
    I have only seen this error in Nix, but I assume it can occur is a plain Unix environment.
    
    This MR adds the standard response file syntax support to HPC. For
    example you can now pass a file to the command line which contains the
    arguments.
    
    ```
    hpc @response_file_1 @response_file_2 ...
    
    The contents of a Response File must have this format:
    COMMAND ...
    
    example:
    report my_library.tix --include=ModuleA --include=ModuleB
    ```
    
    Updates hpc submodule
    
    Co-authored-by: default avatarRichard Wallace <rwallace@thewallacepack.net>
    
    Fixes #22050
    5e8fd4b9
    Implement Response File support for HPC
    Peter Becich authored and Matthew Pickering's avatar Matthew Pickering committed
    This is an improvement to HPC authored by Richard Wallace
    (https://github.com/purefn) and myself. I have received permission from
    him to attempt to upstream it. This improvement was originally
    implemented as a patch to HPC via input-output-hk/haskell.nix:
    https://github.com/input-output-hk/haskell.nix/pull/1464
    
    
    
    Paraphrasing Richard, HPC currently requires all inputs as command line arguments.
    With large projects this can result in an argument list too long error.
    I have only seen this error in Nix, but I assume it can occur is a plain Unix environment.
    
    This MR adds the standard response file syntax support to HPC. For
    example you can now pass a file to the command line which contains the
    arguments.
    
    ```
    hpc @response_file_1 @response_file_2 ...
    
    The contents of a Response File must have this format:
    COMMAND ...
    
    example:
    report my_library.tix --include=ModuleA --include=ModuleB
    ```
    
    Updates hpc submodule
    
    Co-authored-by: default avatarRichard Wallace <rwallace@thewallacepack.net>
    
    Fixes #22050
Loading