Skip to content

Add --show-unit-ids flag to ghc-pkg

Oleg Grenrus requested to merge phadej/ghc:show-unit-ids into master

It would be great if this is backported to 8.8 and 8.10 branches too. The use case is to debug failures in cabal/store as currently, the output could be like

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
http-streams-0.8.6.1
z-cabal-fmt-z-cabal-fmt-internal-0.1.1
cabal-doctest-1.0.7
HsOpenSSL-0.11.4.16
z-hackage-cli-z-cabal-revisions-0.1.0.0
time-parsers-0.1.2.1
http-streams-0.8.6.1
openssl-streams-1.2.2.0
openssl-streams-1.2.2.0
these-lens-1
openssl-streams-1.2.2.0
http-streams-0.8.6.1
z-cabal-fmt-z-cabal-fmt-internal-0.1.1
z-cabal-fmt-z-cabal-fmt-internal-0.1.1
z-cabal-fmt-z-cabal-fmt-internal-0.1.1
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
HsOpenSSL-x509-system-0.1.0.3
http-client-openssl-0.3.0.0
HsOpenSSL-x509-system-0.1.0.3
http-io-streams-0.1.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
http-client-openssl-0.3.0.0
HsOpenSSL-x509-system-0.1.0.3
HsOpenSSL-x509-system-0.1.0.3

Which just says: remove everything, you won't be able to fix it. There are duplicate package identifiers, and no way to pinpoint which ones are actually broken.

cc @hvr

Edited by Oleg Grenrus

Merge request reports