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

fake-package + --package-db=relative/path fails #8585

Open
fgaz opened this issue Nov 11, 2022 · 0 comments
Open

fake-package + --package-db=relative/path fails #8585

fgaz opened this issue Nov 11, 2022 · 0 comments

Comments

@fgaz
Copy link
Member

fgaz commented Nov 11, 2022

Describe the bug

fake-package + --package-db=relative/path fails

To Reproduce

$ cabal v2-repl -b some-package-in-db --package-db=relative/path/to/db
Resolving dependencies...
Build profile: -w ghc-9.0.2 -O1
In order, the following will be built (use -v for more details):
 - fake-package-0 (lib) (first run)
Warning: this is a debug build of cabal-install with assertions enabled.
Configuring library for fake-package-0..
Error: cabal: The following package dependencies were requested
--dependency='some-package-in-db=some-package-in-db-0.1.0.0'
however the given installed package instance does not exist.

Expected behavior

Should not fail. I suspect the path gets interpreted relatively to the fake-package temporary directory. It should be made absolute before using it that way.

System information

  • NixOS 22.05
  • ghc 9.0.2, cabal 8.9-something

Additional context

cc @patrickdoc (#7676)

Related to #6977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant