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

Add alt.project tests for ReplOptions #10690

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philderbeast
Copy link
Collaborator

Reproduction of the failure for #10689. The cabal.project has its one package in the same directory whereas alt.project has one package but in another directory, alt.

$ ~/.ghcup/bin/cabal-3.14.1.0 repl --project-file=cabal.project
...
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following will be built (use -v for more details):
 - cabal-repl-options-0.1 (interactive) (lib) (first run)
Preprocessing library for cabal-repl-options-0.1...
GHCi, version 9.10.1: https://www.haskell.org/ghc/  :? for help
[1 of 2] Compiling ModuleA          ( ModuleA.hs, interpreted )
[2 of 2] Compiling ModuleC          ( ModuleC.hs, interpreted )
Ok, two modules loaded.
ghci> :q
Leaving GHCi.

$ ~/.ghcup/bin/cabal-3.14.1.0 repl --project-file=alt.project
...
Configuration is affected by the following files:
- alt.project
Resolving dependencies...
Error: [Cabal-7076]
Internal error when trying to open a repl for the package fake-package-0. The package
is not in the set of available targets for the project plan, which would suggest an
inconsistency between readTargetSelectors and resolveTargets.

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@philderbeast philderbeast force-pushed the test/repl-options-alt-dir branch from 80bdf3e to 3821cff Compare December 29, 2024 17:05
@philderbeast philderbeast force-pushed the test/repl-options-alt-dir branch from 3821cff to b0c404f Compare December 29, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant