A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files

  • tyler@programming.dev
    link
    fedilink
    arrow-up
    41
    arrow-down
    4
    ·
    6 days ago

    You shouldn’t write complex yaml files. Keep it simple and yaml is great. Do complex stuff and you’ll hate your life.

    • ruk_n_rul@monyet.cc
      link
      fedilink
      arrow-up
      30
      ·
      6 days ago

      If you write your own tooling then it’s great. The vast majority of us are using other people’s tooling and have to deal with their imposed complexity. I for one hate GitHub actions with a passion.

      • tyler@programming.dev
        link
        fedilink
        arrow-up
        12
        ·
        5 days ago

        None of the complexity of GitHub actions would be solved with any other configuration language. It needs to be a full scripting language at minimum. The problems with GHA have nothing to do with yaml.

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        6 days ago

        I’m convinced everybody who told me that “GitHub actions are great!” were just part of one big prank.

      • corsicanguppy
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 days ago

        I love how github actions make even ruby from gitlab ci look good.

        That’s real power, right there.

      • tyler@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 days ago

        JSON is not easier for most strings. Anything multiline for example.

        But yaml is a superset of JSON so you literally can use JSON and it’s still valid YAML.