-
Notifications
You must be signed in to change notification settings - Fork 704
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 sdist --project-file doesn't respect the option #7241
Comments
I'm finding this to be the case with
|
I would have thought this would be resolved by #8109 ? |
Still a problem with cabal I installed with ghcup.
I'll install from source and try that too. |
This PR is 3.8.0.20220526, as see in release-notes/cabal-install-3.8.0.20220526.md, so I wouldn't count on master branch compiled from source doing any better. However, you could then run relevant tests and see if they behave any different than your use case and, e.g., add a new failing test to include in a new ticket [edit: or this ticket], with a better understanding what the failing scenario is. |
We haven't broken master branch yet, I trust. But you can also use https://github.com/haskell/cabal/tree/cabal-install-v3.8.1.0-rc1 for extra safety. |
I'm on branch
Can I use this to refer to a project file in the current directory? If I set What are the relative relationships allowed between If I set both |
I find the rendered command line cabal/cabal-install/src/Distribution/Client/ProjectFlags.hs Lines 19 to 27 in 42da820
|
This is very brief. It is explained more in source comments that don't get surfaced to cabal/cabal-install/src/Distribution/Client/ProjectFlags.hs Lines 48 to 52 in 42da820
|
Here's the latest from the user's guide. .. option:: --ignore-project
Ignores the local ``cabal.project`` file and uses the default
configuration with the local ``foo.cabal`` file. Note that
if this flag is set while the ``--project-file`` flag is also
set then this flag will be ignored. |
With #8226 I've added a minimal reproduction of the set up I had where I noticed this problem. For the backstory, I squished a set of packages into one package (using public sub-libraries) and ended up with two projects, I'm not sure how to wire the files I've added into a test suite. Any pointers about where to start? |
I think it focused on |
yes
yes
parent re directory structure
I don't know. Probably both. #8109 is about that. Perhaps it's described there? It got reviewed, so the semantics assumed there may be fine. |
Right, this needs to be documented better.
Please kindly verify it agrees with #8109. |
I tested this on HEAD and it and --ignore-project appear to work. The patch didn't make it into 3.8.1.0 I guess? I'll optimistically close on that basis. |
(note that one needs to run |
@Mikolaj, I was able to use cabal/cabal-testsuite/src/Test/Cabal/Prelude.hs Lines 344 to 346 in 7478066
|
In #8226? Good to know, thanks. |
Yes, added today in #8226. |
- Move project sdist tests to cabal-testsuite - Add --ignore-project test - Duplicate tests but without cabal.project - Add a cabal.project one folder up - Add a package Z in the root - Rerun --accept with more immediate parent project - Add a readme for the tests - Fix problems with uv package, update expected output - Add U and V modules - Explain what is wrong with cabal.dot-uv.test.hs - Add a note on cabal.no-project.test.hs - Explain what is wrong with cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Explain what is wrong with cabal.dot-uv.test.hs - Leave a note explaining cabal.no-project.test.hs - Leave a note explaining cabal.project.test.hs - Leave a note explaining cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Patches for project respecting behaviour - Explain root ignore-project and no-project tests - Add *.v2.test.hs variants exercising v2-sdist - Add v2 patches, test out not using <ROOT>
- Move project sdist tests to cabal-testsuite - Add --ignore-project test - Duplicate tests but without cabal.project - Add a cabal.project one folder up - Add a package Z in the root - Rerun --accept with more immediate parent project - Add a readme for the tests - Fix problems with uv package, update expected output - Add U and V modules - Explain what is wrong with cabal.dot-uv.test.hs - Add a note on cabal.no-project.test.hs - Explain what is wrong with cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Explain what is wrong with cabal.dot-uv.test.hs - Leave a note explaining cabal.no-project.test.hs - Leave a note explaining cabal.project.test.hs - Leave a note explaining cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Patches for project respecting behaviour - Explain root ignore-project and no-project tests - Add *.v2.test.hs variants exercising v2-sdist - Add v2 patches, test out not using <ROOT>
cabal-install-3.4
is broken.cabal-install-3.2
doesn't work either.The text was updated successfully, but these errors were encountered: