Skip to content

Cannot install only one of many executables in a package. #8614

@kindaro

Description

@kindaro

Describe the bug

I cannot install only one of many executables in a package. All of them get built and installed at once.

To Reproduce

Steps to reproduce the behavior:

Create a trivial package with 2 executables. Ask Cabal to install some one of them.

% cabal install example1 --installdir /tmp/executables
Wrote tarball sdist to /tmp/example/dist-newstyle/sdist/example-0.1.0.0.tar.gz
Resolving dependencies...
Up to date
Symlinking 'example1' to '/tmp/executables/example1'
Symlinking 'example2' to '/tmp/executables/example2'
% ls /tmp/executables
example1  example2

I never asked for example2!

Expected behavior

Exactly one executable that I named is built and installed.

System information

  • Standard issue Linux.
  • cabal-install version 3.8.1.0.

Additional context

This should have been solved in #6369?…

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions