Cake Build system eliminate multiple cake.config files and debugging workaround with default target #3960
Replies: 2 comments 4 replies
-
I am not sure I follow exactly the problem that you are having here. You haven't explained why you needed to create multiple cake.config files. What problem are you trying to solve here? Do you have a small set of reproducible steps that can be followed to illustrate the problems that you are having? |
Beta Was this translation helpful? Give feedback.
-
Ok, now i have this structure: And to be able to run and rebug task, i have to add cake.config in any of the following folders (otherwize it will crate tools folder in each directory) without (it creates tools folder in debug on running cleanup task): and it still does not run: And, NOW, after adding some glue, it is runnable and debuggable: And even better, conditional targets adds glue and it allows debugging root script as well: My playground is here: https://github.com/funcelot/cake-structured-template P.S.: I am working on real project, where expects big number of scrips. You may leave all scripts at root or try to run non-root scripts, but without any modifications to cake build system, you will definetely will fail, so i share with you my breakthrough path P.P.S: Root: cake.config Level 1 cake.config Level 2 cake.config Root debug cake conditional target inclusion: Non-root debug cake conditional target: |
Beta Was this translation helpful? Give feedback.
-
Recently, i wrote an article about creating complex Cake Build systems recepies and created repo:
And, I stucked with nightmare because of:
That's dubious, excessive and cause bugs and not really needed, IMHO. I believe that only one cake.config in root folder needed (the one you could get by command
git rev-parse --show-toplevel
), you do not need to define workaround code to make root-level scripts debuggable and any non-root internal tasks debuggable (at least you can add these code block on behalf of visible margins)What do you think?
Beta Was this translation helpful? Give feedback.
All reactions