Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component requested is not available: error componentAvailableTargetStatus: impossible #9447

Open
alt-romes opened this issue Nov 14, 2023 · 0 comments
Labels
re: project-file Concerning cabal.project files type: bug

Comments

@alt-romes
Copy link
Collaborator

alt-romes commented Nov 14, 2023

Describe the bug

When building pandoc having unpacked most of its dependencies locally, building results in an internal error due to the component typst-test being desired but not available

componentAvailableTargetStatus: impossible; cname=test:typst-test
CallStack (from HasCallStack):
  error, called at src/Distribution/Client/ProjectPlanning.hs:3075:15 in cabal-install-3.11.0.0-inplace:Distribution.Client.ProjectPlanning

The key insight is likely that typst-test is a component of a package that is gotten from a source-repository (stanza in cabal.project).

To Reproduce

  1. Clone pandoc.
  2. Edit cabal.project and add the following lines below the existing ones:
packages: .
          Glob-0.10.2
          JuicyPixels-3.3.8
          OneTuple-0.4.1.1
          Only-0.1
          QuickCheck-2.14.3
          StateVar-1.2.2
          aeson-2.1.2.1
          aeson-pretty-0.8.10
          appar-0.1.8
          asn1-encoding-0.9.6
          asn1-parse-0.9.5
          asn1-types-0.3.4
          assoc-1.1
          async-2.2.4
          attoparsec-0.14.4
          base-compat-0.13.1
          base-compat-batteries-0.13.1
          base-orphans-0.9.1
          base16-bytestring-1.0.2.0
          base64-0.4.2.4
          base64-bytestring-1.2.1.0
          basement-0.0.16
          bifunctors-5.6.1
          bitvec-1.1.5.0
          blaze-builder-0.4.2.3
          blaze-html-0.9.1.2
          blaze-markup-0.8.3.0
          byteorder-1.0.4
          call-stack-0.4.0
          case-insensitive-1.2.1.0
          cassava-0.5.3.0
          cereal-0.5.8.3
          citeproc-0.8.1
          commonmark-0.2.4
          commonmark-extensions-0.2.4
          commonmark-pandoc-0.2.1.3
          comonad-5.0.8
          conduit-1.3.5
          conduit-extra-1.3.6
          contravariant-1.5.5
          cookie-0.4.6
          crypton-0.34
          crypton-connection-0.3.1
          crypton-x509-1.7.6
          crypton-x509-store-1.6.9
          crypton-x509-system-1.6.7
          crypton-x509-validation-1.6.12
          data-default-0.7.1.1
          data-default-class-0.1.2.0
          data-default-instances-containers-0.0.1
          data-default-instances-dlist-0.0.1
          data-default-instances-old-locale-0.0.1
          data-fix-0.3.2
          digest-0.0.1.7
          digits-0.3.1
          distributive-0.6.2.1
          dlist-1.0
          doclayout-0.4.0.1
          doctemplates-0.11
          emojis-0.1.3
          file-embed-0.0.15.0
          generically-0.1.1
          gridtables-0.1.0.0
          hashable-1.4.3.0
          haskell-lexer-1.1.1
          hourglass-0.2.12
          http-client-0.7.15
          http-client-tls-0.3.6.3
          http-types-0.12.3
          indexed-traversable-0.1.3
          indexed-traversable-instances-0.1.1.2
          integer-logarithms-1.0.3.1
          iproute-1.7.12
          ipynb-0.2
          libyaml-0.1.2
          memory-0.18.0
          mime-types-0.1.2.0
          mono-traversable-1.0.15.3
          network-3.1.4.0
          network-uri-2.6.4.2
          old-locale-1.0.0.7
          old-time-1.1.0.3
          optparse-applicative-0.18.1.0
          ordered-containers-0.2.3
          pandoc-types-1.23.1
          pem-0.2.4
          pretty-show-1.10
          regex-base-0.94.0.2
          regex-tdfa-1.3.2.2
          resourcet-1.3.0
          safe-0.3.19
          scientific-0.3.7.0
          semialign-1.3
          semigroupoids-6.0.0.1
          skylighting-0.14
          skylighting-core-0.14
          skylighting-format-ansi-0.1
          skylighting-format-blaze-html-0.1.1.1
          skylighting-format-context-0.1.0.2
          skylighting-format-latex-0.1
          socks-0.6.1
          streaming-commons-0.2.2.6
          strict-0.5
          syb-0.7.2.4
          tagged-0.8.8
          tasty-1.4.3
          tasty-golden-2.3.5
          tasty-hunit-0.10.1
          temporary-1.3
          texmath-0.12.8.4
          text-conversions-0.3.1.1
          text-short-0.1.5
          th-abstraction-0.5.0.0
          th-compat-0.1.4
          th-lift-0.8.4
          th-lift-instances-0.1.20
          these-1.2
          time-compat-1.9.6.1
          tls-1.9.0
          toml-parser-1.3.0.0
          transformers-compat-0.7.2
          typed-process-0.2.11.1
          typst-0.3.2.1
          typst-symbols-0.1.4
          unicode-collation-0.1.3.5
          unicode-data-0.4.0.1
          unicode-transforms-0.4.0.1
          uniplate-1.6.13
          unix-time-0.4.11
          unliftio-core-0.2.1.0
          unordered-containers-0.2.19.1
          utf8-string-1.0.2
          uuid-types-1.0.5.1
          vector-0.13.1.0
          vector-algorithms-0.9.0.1
          vector-stream-0.1.0.0
          witherable-0.4.2
          xml-1.3.14
          xml-conduit-1.9.1.3
          xml-types-0.3.8
          yaml-0.11.11.2
          zip-archive-0.4.3
          zlib-0.6.3.0
  1. cabal unpack all those dependencies:
cabal unpack Glob-0.10.2 JuicyPixels-3.3.8 OneTuple-0.4.1.1 Only-0.1 QuickCheck-2.14.3 StateVar-1.2.2 aeson-2.1.2.1 aeson-pretty-0.8.10 appar-0.1.8 asn1-encoding-0.9.6 asn1-parse-0.9.5 asn1-types-0.3.4 assoc-1.1 async-2.2.4 attoparsec-0.14.4 base-compat-0.13.1 base-compat-batteries-0.13.1 base-orphans-0.9.1 base16-bytestring-1.0.2.0 base64-0.4.2.4 base64-bytestring-1.2.1.0 basement-0.0.16 bifunctors-5.6.1 bitvec-1.1.5.0 blaze-builder-0.4.2.3 blaze-html-0.9.1.2 blaze-markup-0.8.3.0 byteorder-1.0.4 call-stack-0.4.0 case-insensitive-1.2.1.0 cassava-0.5.3.0 cereal-0.5.8.3 citeproc-0.8.1 commonmark-0.2.4 commonmark-extensions-0.2.4 commonmark-pandoc-0.2.1.3 comonad-5.0.8 conduit-1.3.5 conduit-extra-1.3.6 contravariant-1.5.5 cookie-0.4.6 crypton-0.34 crypton-connection-0.3.1 crypton-x509-1.7.6 crypton-x509-store-1.6.9 crypton-x509-system-1.6.7 crypton-x509-validation-1.6.12 data-default-0.7.1.1 data-default-class-0.1.2.0 data-default-instances-containers-0.0.1 data-default-instances-dlist-0.0.1 data-default-instances-old-locale-0.0.1 data-fix-0.3.2 digest-0.0.1.7 digits-0.3.1 distributive-0.6.2.1 dlist-1.0 doclayout-0.4.0.1 doctemplates-0.11 emojis-0.1.3 file-embed-0.0.15.0 generically-0.1.1 gridtables-0.1.0.0 hashable-1.4.3.0 haskell-lexer-1.1.1 hourglass-0.2.12 http-client-0.7.15 http-client-tls-0.3.6.3 http-types-0.12.3 indexed-traversable-0.1.3 indexed-traversable-instances-0.1.1.2 integer-logarithms-1.0.3.1 iproute-1.7.12 ipynb-0.2 libyaml-0.1.2 memory-0.18.0 mime-types-0.1.2.0 mono-traversable-1.0.15.3 network-3.1.4.0 network-uri-2.6.4.2 old-locale-1.0.0.7 old-time-1.1.0.3 optparse-applicative-0.18.1.0 ordered-containers-0.2.3 pandoc-types-1.23.1 pem-0.2.4 pretty-show-1.10 regex-base-0.94.0.2 regex-tdfa-1.3.2.2 resourcet-1.3.0 safe-0.3.19 scientific-0.3.7.0 semialign-1.3 semigroupoids-6.0.0.1 skylighting-0.14 skylighting-core-0.14 skylighting-format-ansi-0.1 skylighting-format-blaze-html-0.1.1.1 skylighting-format-context-0.1.0.2 skylighting-format-latex-0.1 socks-0.6.1 streaming-commons-0.2.2.6 strict-0.5 syb-0.7.2.4 tagged-0.8.8 tasty-1.4.3 tasty-golden-2.3.5 tasty-hunit-0.10.1 temporary-1.3 texmath-0.12.8.4 text-conversions-0.3.1.1 text-short-0.1.5 th-abstraction-0.5.0.0 th-compat-0.1.4 th-lift-0.8.4 th-lift-instances-0.1.20 these-1.2 time-compat-1.9.6.1 tls-1.9.0 toml-parser-1.3.0.0 transformers-compat-0.7.2 typed-process-0.2.11.1 typst-0.3.2.1 typst-symbols-0.1.4 unicode-collation-0.1.3.5 unicode-data-0.4.0.1 unicode-transforms-0.4.0.1 uniplate-1.6.13 unix-time-0.4.11 unliftio-core-0.2.1.0 unordered-containers-0.2.19.1 utf8-string-1.0.2 uuid-types-1.0.5.1 vector-0.13.1.0 vector-algorithms-0.9.0.1 vector-stream-0.1.0.0 witherable-0.4.2 xml-1.3.14 xml-conduit-1.9.1.3 xml-types-0.3.8 yaml-0.11.11.2 zip-archive-0.4.3 zlib-0.6.3.0
  1. cabal build.

Expected behavior
No error

System information

  • macOS
  • cabal HEAD, ghc 9.4

This came up when trying to reproduce #5220

Note that typst is also a source-repository-package, besides being listed in packages.

source-repository-package
  type: git
  location: https://github.com/jgm/typst-hs
  tag: 71c24946e098ce8af0b8de4004711e4ee732f2d0
@alt-romes alt-romes self-assigned this Nov 14, 2023
@Mikolaj Mikolaj added re: project-file Concerning cabal.project files and removed needs triage labels Nov 14, 2023
@alt-romes alt-romes assigned alt-romes and unassigned alt-romes Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: project-file Concerning cabal.project files type: bug
Projects
None yet
Development

No branches or pull requests

2 participants