-
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
Remove --cabal-file option #9123
Conversation
1ea8a0d
to
3c2c6b8
Compare
I am running into this annoying problem 🤔 😒 |
It was recently changed in #8919 (see how it updated the tests). Not sure what to do about it though. |
We could tag the author of that PR maybe. |
What's puzzling is that it seems to depend on the GHC version 🤔 Let me reset those changes first. |
3c2c6b8
to
362a714
Compare
It may have to do with the version of Haddock (distributed with GHC, so, by extension, on the version of GHC). But yeah, I have no idea really. |
362a714
to
898d94b
Compare
Maybe I was just mixing up two different failures. |
Can any Windows expert help me understand what's going on here https://github.com/haskell/cabal/actions/runs/5584068207/jobs/10205063977#step:18:1658? |
might be sporadic, triggered a rerun |
Let me try to rerun once again. :) |
Thanks. I am at loss with what is happening on Windows :-/ I don't think I can do much. |
I'm able to reproduce the error in 9.4.4:
It seems the folder doesn't exist. I can confirm that
However, the test passes with GHC 9.6.3, and the behavior of
Which makes me think that GHC changed something in the steps it followed for creating the paths. Confirmed it works also on GHC-9.6.1, so the failure is on 9.4.4 |
Note that MinGW does not understand symlinks, so the test would need to be reworked around this fact (or skipped in windows) What I mean by this is that the symlinks you have in the Includes2 folder will not work on MinGW on Windows. I had to manually replace them with actual copies of the directories for the tests to run. I don't understand how they can run in GHA (perhaps Git bash?) |
So in fact it has nothing to do with directories but rather with long paths, and it was fixed in 9.4.5:
Rebasing on top of To confirm this, I shortened the length of the package and sub libraries to 1 letter only and then progressively add letters to |
db857ee
to
cd83aee
Compare
And indeed it works! Thank you again ❤️ |
@ulysses4ever @Mikolaj gentle ping for a review |
Thanks a lot for the tests! How about a changelog? |
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.
LGTM, thank you. And sorry for long delay.
The flag is still available in the library and perhaps v1-commands? There're setup-tests that you updated to not use the flag, but is it really unavailable in setup-tests or is it out of a desire to avoid the legacy flag?
It is still available in v1-configure and in ./Setup.hs
🤔 uhm, TBH, I don't remember what I was thinking 5 months ago 😂 yes, perhaps I could have kept the tests the same, but if there is a way to run the tests without "internal" options perhaps that is the better way to go. |
That is fair and I agree. Is there no place in the docs to expand a little bit on the "internal" nature of this flag? I remember users trying to use the flag in all sorts of wrong ways... |
And not only that but just improve its docs. |
There is space but I am afraid someone else will have to do this. I don't know much about that flag; only from reading #8395 I thought it was a low-hanging fruit |
Could you open a short ticket about it and mark it I still don't see a changelog file. Am I missing it? |
Alternatively, perhaps let's not close #8395 and let's add the note about the docs there. |
cd83aee
to
5557530
Compare
@Mikolaj I have added the changelog ;-) |
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.
This looks fine. Thank you.
5557530
to
cd7b3d6
Compare
Closes: #8395
Please read Github PR Conventions and then fill in one of these two templates.
Template Α: This PR modifies
cabal
behaviourInclude the following checklist in your PR:
Bonus points for added automated tests!
Template Β: This PR does not modify
cabal
behaviour (documentation, tests, refactoring, etc.)Include the following checklist in your PR: