haskell / haskell/cabal

When attempting to install a single executable component, all of them are installed

Open
#9,450 2 comments 3 reactions 0 assignees View on GitHub
cabal-install: cmd/install type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
When trying to install a single executable component from a package then all executables are installed.

**To Reproduce**
Steps to reproduce the behavior:

```
git clone https://github.com/eyeinsky/tmp-nZbGqMAOG0-cdtemp
cd tmp-nZbGqMAOG0-cdtemp
mkdir bin
cabal install --installdir=bin tmp-nZbGqMAOG0-cdtemp:exe:first
find bin -type l -executable
```

Results in
```
bin/first
bin/second
```

**Expected behavior**

Should list only `first`

**System information**

nixos-version
23.05.4603.3e10c80821de (Stoat)

cabal --version
cabal-install version 3.10.1.0
compiled using version 3.10.1.0 of the Cabal library

ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.2.8

**Additional context**

Created a repository to reproduce this (it's used above): https://github.com/eyeinsky/tmp-nZbGqMAOG0-cdtemp

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.