-
Notifications
You must be signed in to change notification settings - Fork 710
If we don't need a package, then we don't use cabal.project.local #8154
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
Interestingly I cannot reproduce this warning on Linux. Despite the fact that none of But the problem stands.
|
So the problem is that project files have "append" sematics? I think this is expected and useful when people use their tiny ad-hoc cabal.project.local to supplement big checked-in cabal.project. However, this could be better documented and, perhaps, we could in addition permit "overwrite" semantics, e.g., with some special syntax, or with another file. @zloilya: what are your thoughts as a (surprised) user? |
I think the package overwrite syntax would be a good solution for me. |
Initially, I just decided to go through the Nix-style Local Builds chapter, thinking that it should be rewritten(docs) in the future and maybe I should start playing with what was described in it. |
Splendid. Please feel free to open tickets for concrete proposals, the smaller, the better. E.g., the overwrite syntax ticket, or "document that cabal.project and cabal.project.local have append semantics" once you determine there are no tickets opened for that already (or no documentation already somewhere or it can be improved). |
side question: i wonder what is the semantics of |
I think it doesn't have any effect when in a project file, like |
Describe the bug
I get a warning.
ld: warning: directory not found for option '-L/opt/homebrew/Cellar/xz/5.2.5/lib'
I noticed that the build for mac os throws a warning.
Then I decided to create a
cabal.project.local
file with path/usr/local/Cellar/xz/5.2.5/lib
and was surprised that the warning was still there.It turned out that the package is no longer needed, but now the cabal does not see the changes from the
cabal.project.local
.I have found some solutions. Not good but working.
If you remove or replace a
package lzma
in acabal.project
, then the warning disappears.To Reproduce
Steps to reproduce the behavior:
cabal init
add to
cabal.project
(that path usually use in ubuntu)add to
cabal.project.local
(that path usually use in mac os)add to
.cabal
(we need at least one lib who using lzma, if we want to get warning)Expected behavior
No warning.
System information
mac os
cabal 3.6.2.0
ghc 9.0.2
The text was updated successfully, but these errors were encountered: