cabal-install is seeing double -"TODO: add support for multiple packages in a directory")
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
While testing 5496d39107238ec500f2fa3b5067c6393f0110a8 on https://github.com/haskell-text/text-display, I get the following error:
```
~/Projects/text-display main 14.08s 00:26:05
❯ find -iname "*.cabal"
./text-display.cabal
~/Projects/text-display main 0.09s 00:26:10
❯ /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.4.4/cabal-install-3.9.0.0/x/cabal/build/cabal/cabal build
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
TODO: add support for multiple packages in a directory. Got
text-display-0.0.3.0
text-display-0.0.3.0
CallStack (from HasCallStack):
error, called at src/Distribution/Client/ProjectOrchestration.hs:590:9 in cabal-install-3.9.0.0-inplace:Distribution.Client.ProjectOrchestration
```
Looks like some deduplication does not happen for some reason. I can ship a patch if it's just a matter of `ordNub` on the pkgids?
source: https://github.com/haskell/cabal/blob/master/cabal-install/src/Distribution/Client/ProjectOrchestration.hs#L589-L598
Contributor guide
Assessment
This issue has not been assessed yet.