plan.json includes internal libraries which aren't built.
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
`plan.json` includes also internal libraries which aren't always built.
**To Reproduce**
```
$ cabal v2-install --lib overloaded
```
In `~/.ghc/.../environments/default` I get
```
package-id overloaded-0.1.3-0f5ef0185b0463d9c537b950ec837dc1f2c91bda0aab9c3e85c6116c29835dbf
package-id overloaded-0.1.3-cbb948b926e47cefb1f7cce1fac8681fbaa99202a33cb5a0225d7225620c3ed2
```
one of which is `overloaded` library, and the second is `overloaded:optics-hasfield` which is not what I asked for.
---
Similarly if I depend on `overloaded` in a package, the `overloaded:optics-hasfield` will pop into `plan.json`, even `cabal v2-build` doesn't build it.
**Expected behavior**
cabal should be more precise.
Contributor guide
Assessment
This issue has not been assessed yet.