-
Notifications
You must be signed in to change notification settings - Fork 714
make cabal less chatty w.r.t. project files in use #10940
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
Conversation
d2194da
to
45dcb0d
Compare
4501f79
to
cc63eaf
Compare
528cf85
to
fae5b09
Compare
Are you still seeing the problems in the CI? As in
|
@Mikolaj yes, that's why the pipelines are currently failing I believe |
I don't think this
|
Oh my, I had a feeling I lost my way in the output... I wonder if in the future we could try to avoid generating +'s like the one that confused me. The actual failure is expected and will be fixed. The reason it wasn't fixed before is that when I ran the testsuite locally --accept'ing the necessary changes, this test failed with an exception in ProjectaOrchestration.hs. This is a discrepancy between my local setup and CI that probably deserves a separate ticket but let's not get bogged down by this. Thanks for unlocking me! Now I can probably finish fixing tests at least. |
2f4b051
to
df7fc70
Compare
df7fc70
to
5c90821
Compare
I don't see this test in my tree — is it a ghost? |
Exactly: that one isn't merged yet, so there shouldn't be tests from there on my branch... I'm having trouble understanding this:
@Bodigrim thanks for your comments. I'll incorporate them when/if I finish my fight with the test suite. Currently, it's not clear who will come out as a victor, I or it... |
I've never really understood all the normalization stuff, tbh. And I think I poked at it once and found it a bit hacky. |
Okay, test suite issues aside, there's an actual technical question: if we want to print project files out only when My first idea was to look at the path to project files, 'cause I thought their paths would be stored relative to CWD but that's of course not the case --- their paths are relative to the project root (it makes sense: otherwise we'd have to reconfigure everytime we change directory we run So, I'm currently looking for ideas on how to tell that |
all right, looks like |
bdcf9aa
to
ab84f4f
Compare
this branch is rebased now but the PR won't merge because @philderbeast "requested changes" |
@philderbeast: could we have your ban lifted? :) Actually, assuming you are fine with it and in the interest of time, let me lift it myself, but please correct me, if I got the situation wrong. |
I understand this no longer applies after the other PR was merged. Please correct me if not.
@mergify rebase |
✅ Branch has been successfully rebased |
0977e83
to
739ab41
Compare
#10684 has the fix for the duplicate "Configuration is affected by" notices so ideally that would go in first so we'd see its fix in the test output changes. |
cabal-testsuite/PackageTests/BuildTargets/UseLocalPackage/use-local-version-of-package.out
Show resolved
Hide resolved
Sorry for the delay @ulysses4ever. |
no problem @philderbeast! |
81ff394
to
3231c72
Compare
I think I've mentioned this before (and I know this was a rebase, not new commits) but
|
@geekosaur thanks, quite true. This is more of a convention for me rather than a tool. |
@geekosaur there are hidden perks that "fixup!" brings, e.g. Magit comments out these messages when doing squash locally and forming the resulting commit message |
3231c72
to
00b179e
Compare
…t root (or verbose) (fix #10885)
00b179e
to
bd0760e
Compare
@mergify refresh |
✅ Pull request refreshed |
fix #10885
After #10507, cabal prints out what project files are in use on every run.
This looked too noisy for some users (#10885). In this patch, we implement a more nuanced
strategy: print out this info only when cabal is run below the root project directory.
As before, you can get this information uncoditionally if run in the verbose mode.
Bonus: we now also print the porject root directory along with the file names.
Before, we only printed, say,
cabal.project
, but it wasn't clear where this file iscoming from (can be enywhere up the directory tree).
The change tries to avoid confusion when cabal picks up stray project files in
ancestor directories, see discussion in #7930.
The diff in tests is big but it should mostly just undo the changes from #10507.
Manual QA
cabal init -nm --lib
.echo 'packages: .' > cabal.project
cabal build all --dry
-- expect NO message about project files.cd src
and runcabal
again just as in the previous step -- expect a message aboutcabal.project
.Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significant
in the changelog file.