Drone-fmt removes anchors

If I have a yml anchor in my drone.yml file and run a drone fmt --save all anchor references are expanded and the anchor is removed. We’ve been using drone fmt --save for consistency across our repositories but would like to utilize anchors to reuse some things.

Example Pipeline:

---
kind: pipeline
name: prod

deploy_app_anchor: &deploy_app_anchor
  image: golang:1.15
  commands:
  - echo "deploying your stuff"

steps:
- name: deploy_app
  <<: *deploy_app_anchor
  when:
    branch:
    - master
    event:
    - push
...

After drone fmt --save

---
kind: pipeline
name: prod

steps:
- name: deploy_app
  image: golang:1.15
  commands:
  - echo "deploying your stuff"
  when:
    branch:
    - master
    event:
    - push
...

This is expected. In order to format, we have to parse the yaml and when we parse the yaml all anchors get expanded by the go-yaml parser (go-yaml is the library we use for parsing). So there is no way to parse a yaml and then re-generate the yaml with anchors.

I thought this might be the case! Thanks for the rapid reply!
Cheers!