-
Notifications
You must be signed in to change notification settings - Fork 697
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
cabal install uses wrong internal library #6211
Comments
One can try to reproduce using git@github.com:phadej/cabal-fmt.git and commits |
Also additional note: removing |
for the record; I briefly discussed this with @phadej but I couldn't reproduce this one yet myself |
This issue sounds similar to #5782, since it also involves using an old version of an internal library with |
As a workaround, to be able to build and install |
Private libraries have a bunch of bugs in cabal currently: * haskell/cabal#6211 * haskell/cabal#6483 and devs of haskell-ide-engine are encountering this bug frequently. To mitigate this issue, remove usage of private libraries and use a common stanza to have the same re-use as before. This change can be undone when the mentioned issues have been resolved.
Private libraries have a bunch of bugs in cabal currently: * haskell/cabal#6211 * haskell/cabal#6483 and devs of haskell-ide-engine are encountering this bug frequently. To mitigate this issue, remove usage of private libraries and use a common stanza to have the same re-use as before. This change can be undone when the mentioned issues have been resolved.
Private libraries have a bunch of bugs in cabal currently: * haskell/cabal#6211 * haskell/cabal#6483 and devs of haskell-ide-engine are encountering this bug frequently. To mitigate this issue, remove usage of private libraries and use a common stanza to have the same re-use as before. This change can be undone when the mentioned issues have been resolved.
Private libraries have a bunch of bugs in cabal currently: * haskell/cabal#6211 * haskell/cabal#6483 and devs of haskell-ide-engine are encountering this bug frequently. To mitigate this issue, remove usage of private libraries and use a common stanza to have the same re-use as before. This change can be undone when the mentioned issues have been resolved.
Unfortunately there are lot of things that private libraries break: hie, stack repl etc. There are bugs that need to be solved before this can be used: - commercialhaskell/stack#4564 - haskell/haskell-ide-engine#1535 - haskell/cabal#6211
I think this is fixed in cabal 3.4. Please report if you repro with 3.4 or newer cabals. In any case, closing as a duplicate of #5782. |
Describe the bug
Even there are changes, somehow
v2-install
from local repository reuses old dependenciesTo Reproduce
Take a package with internal library
You either get old behaviour, old build failure.
Expected behavior
The new stuff is build and installed.
System informataion
Additional context
I'm not sure whether this due hash, or some other mistake in dependency tracking.
E.g. in
master
, i.e. before change,install -v2
prints:Then I change branch to one with changes in both
cabal-fmt-internal
andcabal-fmt
:but
cabal-fmt-0.1.1-080ab3d5644ced2b698c50f756fddd9991e679713d3214f75581f130e3990a04
is not compiled:I see command:
Note:
-package-id cabal-fmt-0.1.1-bc3a8918cef372e66e690a735fe69b08c73bb0be40f3572dd9c25b81b4905463
which is from before branch change!The text was updated successfully, but these errors were encountered: