I never could get Nix working but maybe someone will

    • @[email protected]
      link
      fedilink
      English
      32
      edit-2
      4 months ago
      what:
        is:
        your:
          - problem
          - with:
            YAML
      # At least you can have comments unlike in json. Who need comments in a config file anyway.
      
      • @[email protected]
        link
        fedilink
        English
        114 months ago

        Nothing too major about how it’s usually used, but the yaml spec does allow arbitrary code execution when parsing a file and relies on the parser to have that feature disabled: https://en.m.wikipedia.org/wiki/YAML#Security

        That’s why for python, yaml.save_load() is a thing. That’s fine for your local config files and may even be a feature for you, but it shouldn’t be used to exchange information between services.

      • @[email protected]
        link
        fedilink
        English
        94 months ago

        Hey did you know that any JSON file is also a valid YAML file? I bet you’ll love YAML a lot more now that you have this information

    • @[email protected]
      link
      fedilink
      English
      54 months ago

      Careful. The yaml cult will come after you in a long and formless column, and only self destruct when one of them is a step too far to the left.