Skip to content

Haskell generic bash completions break cross-compilation #49748

@roberth

Description

@roberth

Issue description

Completions in Haskell currently break cross compilation.

Since #49477 we have a function that does this generically for Haskell packages. This can be improved by either:

  • not adding completions when cross compiling
  • emulating the behavior of optparse-applicative to generate the very simple scripts in plain bash, which seems feasible. The duplicated logic can then be tested against the native optparse-applicative behavior.

Steps to reproduce

Cross compile a package with completions, like stack. It will call the build output and fail.
Note that stack currently has its own override in hackage2nix, which is probably best to disable in favor of the library functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: haskellGeneral-purpose, statically typed, purely functional programming language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions