-
Notifications
You must be signed in to change notification settings - Fork 710
Cabal install does not find locally installed dependency ("unknown package") #8714
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
Comments
In general, One way to make local packages available for |
This may be resolved in master by #8607 (comment) |
Thanks @andreasabel, probably i have a simplistic mental model of caching in cabal. I thought that once installed, packages kept no track of where they came from. The doc you referenced seems a great solution to use version two for this use case. I tried adding:
To Thanks @gbaz for the reference to what is being merged. Is there a way to figure out which release will include those improvements, so that i can test again? |
@danse worte
Ah, no, this has to go into |
whoops, i thought that was the section about |
Yes, somehow the documentation should in section https://cabal.readthedocs.io/en/latest/config.html#repository-specification state explicitly that one can also specify repositories in the Also, information about repositories should be referenced from https://cabal.readthedocs.io/en/latest/cabal-project.html# e.g. in https://cabal.readthedocs.io/en/latest/cabal-project.html#cfg-field-active-repositories or more centrally. |
Sounds like an instance of #6319. |
For reference, I asked this SO question a while back about how to do this: How do I get cabal to use a local version of a package as a dependency for a Hackage package? |
Describe the bug
I have package
b
depending ona
.a
is locally installed but when trying to buildb
, the dependency is not found. The error looks like:To Reproduce
Move to
a
, runcabal install
, the installation succeeds. Now move tob
depending ona
, runcabal install
, the installation fails with the error mentioned above. These arev2-
commands.Expected behavior
After installing
a
, i expected it to be locally visible for resolving dependencies.System information
cabal
3.8.1.0,ghc
8.6.5Additional context
Executables provided by
a
are accessible and the library it provides gets correctly imported intoghci
The text was updated successfully, but these errors were encountered: