4 ms·
Templated YAML just means that something somebody thought was configuration either wasn't or wasnt under every circumstance. It's not really a problem with YAML
by hitchstory 3y ago
Templated YAML just means that something somebody thought was configuration either wasn't or wasnt under every circumstance. It's not really a problem with YAML.
In most cases I think it's the fault of the creators of the YAML DSL (e.g. ansible) but with CI pipelines people really just should be writing scripts 100% in other languages and wiring them up to events with YAML. I dont have any sympathy for people using them as programming languages.
I'm sure Microsoft is happy to indulge it though because hey, vendor lock-in.
- BiteCode_dev 3y agoThat's pretty much my strat: put everything in doit, and call doit from the yml file. Anything else is shenanigans.
- trallnag 3y agoAnd yet you are here complaining about Taskfile and YAML overall. Nobody forces you to write full scripts in the YAML file. Just call scripts places somewhere next to it from it
- BiteCode_dev 3y agoJust because you have strats to minimize your exposure to something terrible doesn't mean the thing is less terrible.
- trallnag 3y agoBut I'd do exactly the same with .phony targets in a Makefile. Keep the targets short and move larger chunks of code to individual script files that are just called from the Makefile
- BiteCode_dev 3y agoI don't disagree with any of that. I just prefer Python to make, it's easier for me and most colleagues I met to write and to debug. And making a custom Python function when I need more than bash inside the dodo file is great. But for someone used to make, why not used it?