-
Notifications
You must be signed in to change notification settings - Fork 700
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 --lib" is not idempotent #6394
Comments
A duplicate of #6391 |
Hi @jwaldmann, I wasn't able to reproduce this locally with a minimal cabal library. Do you have a specific repro case I could check out?
|
I am seeing this (using the tidal package from hackage)
|
Ahh, I see. Yes trying to |
looks the same:
|
I'm having a similar issue where
At this point, any The use-case is to be able to use the library globally, for example in a Shakefile. It seems like the current workaround is to remove the |
For now I think the best answer is to use |
I think the workaround is to just use a new environment file specification each time? |
You don't need a workaround with v1-install |
That's what I do in practice but it's fairly annoying. In my use cases, it would mostly be fine if cabal scripts generated environment files properly. But unfortunately there's #6999. |
There's also the cabal-env prototype by phadej. Please leave feedback in #6481 if you try it! |
Thanks @fgaz, I'll have a look! |
Thanks for the suggestion - it already seems to be a lot more usable than |
With cabal-install version 3.2.0.0, tidal-1.6.1 (current on hackage), things seem to work with ghc-8.10.2 and ghc-8.8.4. With ghc-8.6.5, the problem happens as reported. |
Interesting: it seems if I explicitly install I don't get this issue with |
Probably another manifestation of #5559, so closing it as duplicate, feel free to reopen if you think this differs in any way |
I am doing "cabal install" (in a source dir of a project that has a cabal file) This works:
It creates a file
$HOME/.ghc/x86_64-linux-8.6.5/environments/tidal
.When I run the exact same command a second time, I get
I expect that the second command suceeds (and changes nothing).
There is a similar ticket #6391 [EDIT: repaired the reference] but it's different: the re-install seems to succeed but the resulting env file cannot be used.
System information
--allow-newer
)The text was updated successfully, but these errors were encountered: