-
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
Add test cases that reproduce sdist --project-file. #8226
Add test cases that reproduce sdist --project-file. #8226
Conversation
If in the
For the
|
If I understand what is says, perhaps it's because the place the project file is in is the root from which sdist operates, not the directory sdist was called in?
Thank you for the repro. So which of the four calls should work fine? BTW, did you try moving the options before |
Marking this PR as draft 🙂 |
5ffaf93
to
3cc1016
Compare
Tests of sdist with
|
d36901c
to
3ef0988
Compare
3ef0988
to
9c88a41
Compare
This was CI green but out of date with the master branch. I've just rebased. |
9c88a41
to
0393803
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, great to have these tests!
Would it be possible to add to each test (I guess the .hs
files) a comment stating what this test is testing and what the expected outcome is (like "should fail with...", "should succeed...")?
I think this would make it easier for posterity to comprehend the tests, and to fix tests should they be failiing because of a change in cabal...
992ad33
to
1a40ba1
Compare
@andreasabel I've left notes in the The |
Currently comparing |
18dc465
to
debfdfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @philderbeast , for equipping the test with descriptions!
@philderbeast : Thanks! |
debfdfe
to
1ad1704
Compare
- 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>
1ad1704
to
1e62b82
Compare
@andreasabel I squashed manually. Label merge+no rebase is necessary when the pull request is from an organisation. |
@philderbeast: thank you very much again for the exotic label justification ceremony. BTW, I think, after you squashed, you forgot to rebase just before merging, which resulted in a tangled git history (not that tangled and that's not a big deal, but helps a bit when trawling the commit list, e.g., when bisecting problems). I'm sorry about the trouble --- normally that's one of the things mergify does for us, rebasing and testing as many times as needed, if the branch moves while it's working. |
@philderbeast wrote:
Ah, I didn't know about that. Can I read up on this somewhere? |
This is a WIP.Struggling a bit to navigate the test set up, I opted instead to create a small set of tests for reproducing the problem ofcabal sdist --project-file
not respecting the project file option, #7241.I'm testing this with: