-
Notifications
You must be signed in to change notification settings - Fork 981
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
[question] Delete the Build Folder Beforehand if Exists #16576
Comments
Thanks for your question. For most cases the It should be possible to do a |
Hi @memsharded Thank you for the quick response! The use case refers to the local development workflow. Sorry for being too imprecise in my question. To be more precise, the use case would be that generated files in the build folder might change during the development. Thanks for the hint to parse the build folder on the |
Thanks for clarifying. Indeed these things can happen, but they are relatively infrequent, compared with normal incremental builds, keeping the same configurations. If that is the case, developers would do a
Yes, this is what I meant above with overkill. I am not sure the flow we are trying to improve:
|
A command line option to remove the build folder before the actual build is what I have been looking for initially.
It is only about the developer's local flow. The idea is to avoid the |
I guess that you are looking for something similar to the In Conan it would also be a bit more difficult to represent what is a "fresh" install, because there are user operations like If you are writing your own wrapper scripts, then probably doing just I will have a look to this with the team, and discuss if it is worth considering a possible |
Thanks for the hint to make use of the Also, thanks for your explanations and for looking into this use case of having such a flag provided in the Conan command to provide a fresh/clean build folder. |
Thanks for the feedback. I have been discussing with the team, and something like So overall seems to add some complexity with a not very clear UX, for limited value that in the vast majority of the cases developers are already easily handling with a Closing the ticket as solved, many thanks! |
What is your question?
Hi! I have a question regarding the Conan 2 build folder creation workflow.
We use the cmake_layout functionality with a single-configuration cmake-generator to create our build folders.
Considering the default behaviour above, a build/<build_type> would be created.
Now we would like to have the possibility to remove the build folder beforehand, if it exists already, to ensure a clean build e.g. using a wrapper script around the used conan commands.
Is there any possibility to retrieve the created build folder beforehand or tell Conan to force a clean run to enable such behaviour?
Thanks in advance!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: