-
Notifications
You must be signed in to change notification settings - Fork 710
Display within which cabal.project we build #8519
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
Do you propose a |
Yes, very close discussion is in #7930. By all means please do this. I expect it to be a 1-line change. |
If you pass in
Should this be output by default? |
@pigsinablanket brilliant! It should be a matter of changing |
3.10 is quickly approaching, and I hope to have this in it, so I add it to the project… |
@ulysses4ever Running the tests locally with Updating the
|
@pigsinablanket interesting. I wouldn't expect manual editing of the result of Also, while we're at it, may I propose a slight rewording of the message? My preference, instead of
to have
|
("result as is" meaning: commit exactly what |
* Print what cabal.project files get used * Update testsuite
This isn't just a one-line change, as demonstrated by PR #8617, so I am removing the respective label. |
I am afraid I honestly feel the current behavior (including the error message) is pretty terrible...
ie if |
Before it's only printed under `-v`.
Before it's only printed under `-v`.
Before it's only printed under `-v`.
Before it's only printed under `-v`.
Before it's only printed under `-v`.
Before it's only printed under `-v`.
Print out which project file we're using by default (fix #8519)
Before it's only printed under `-v`. (cherry picked from commit a6082fc) # Conflicts: # cabal-testsuite/PackageTests/MultiRepl/CustomSetupKeepTempFiles/cabal.no.out # cabal-testsuite/PackageTests/MultiRepl/CustomSetupKeepTempFiles/cabal.yes.out # cabal-testsuite/PackageTests/MultiRepl/KeepTempFiles/cabal.no.out # cabal-testsuite/PackageTests/MultiRepl/KeepTempFiles/cabal.yes.out # cabal-testsuite/PackageTests/NewBuild/CmdClean/CleanSourceRepositoryPackage/cabal.out
Before it's only printed under `-v`.
Describe the bug
The
cabal
behaves differently depending whether any of the ancestor directories hascabal.project
or not.Since we should not demand the user to only ever test builds within a fresh
/tmp
directory, and large buildsmay easily have multiple
cabal.project
s, it would be nice to warn the user whichcabal.project
we use, or that there is none used in this case.To Reproduce
Steps to reproduce the behavior:
This build breaks.
If we do:
We get a correct build.
The only difference is absence of the
cabal.project
file in the second case.Expected behavior
cabal new-build
should tell why its behaviour differs by indicating whichcabal.project
is used,or printing
no cabal project
.System information
cabal
3.4.1,0ghc
version -- does not matterThe text was updated successfully, but these errors were encountered: