-
Notifications
You must be signed in to change notification settings - Fork 990
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
[feature] Verbose option for apply_conandata_patches() #14165
Comments
Hi @iskunk Actually I think that listing by default the patches being applied should be the default behavior. This is an important information that should be in the logs by default, not as an opt-in, don't you think? Would you like to contribute that PR? Thanks for your offer to contribute this. |
Sounds good. The I'll update my code, and get a PR in. |
In the course of testing, I noticed that the So I updated my change to work with that. The Let me know if you want things done any differently here. |
I am having a look to the PR, and it doesn't sound bad, but the fact that it seems the tests were broken could mean that it is slightly a bit more complicated than it seems. if patch_type or patch_description:
...
elif patch_file: # New addition, if no explicit printing we print our new stuff
conanfile.output.info(f"Applying patch {patch_file}") could make it? |
If existing tests are checking the output produced by |
The problem seems to be that some tests are checking that the output contains some "Applying (backport) patch", and instead getting: ++ mocked/ref: Apply patch (file): patches/0001-buildflatbuffers-cmake.patch
-- mocked/ref: Apply patch (backport): Needed to build with modern clang compilers. So the changes are "destroying" a previously valid and useful message, that we don't want to lose. It is fine to add a new message, and that will not break the tests, but not replace the good message for a new one losing information. |
The assertions appear to be checking There is a related issue that occurs when |
Oh, then that is good. Feel free to modify the test to check for |
Also update test_patches.py accordingly.
All right, I've rolled in an update to the test, and it now passes cleanly. Please double-check my changes. |
Closed by #14177 for 2.0.8 |
What is your suggestion?
I'd like to have this...
...which does this when
verbose=True
......so that information on which patches were applied is recorded in the build log.
I have this implemented and ready to go.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: