# YAML anchor doesn't work

**URL:** <https://discuss.circleci.com/t/yaml-anchor-doesnt-work/45800>\
**Category:** Bug Reports\
**Tags:** circle-yml\
**Created:** [October 18, 2022, 3:09am UTC](https://discuss.circleci.com/t/yaml-anchor-doesnt-work/45800 "2022-10-18T03:09:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abekoh](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/abekoh/32/31383_2.png) [@abekoh](https://discuss.circleci.com/u/abekoh)\
**Post date:** [October 18, 2022, 3:09am UTC](https://discuss.circleci.com/t/yaml-anchor-doesnt-work/45800/1 "2022-10-18T03:09:53Z")

</div>

Today, the job stopped working due to a parse error. It worked fine until yesterday.

`.circleci/config.yml` is like this:

```yaml
jobs:
  one_job:
    steps:
      - run: &deploy.install-dependencies
          name: install dependencies
          command: |
            echo "start installing deps"
  another_job:
    steps:
      - run:
          <<: *deploy.install-dependencies

```

Error is here:

```auto
Unable to parse YAML
while scanning an anchor
 in 'string', line 250, column 14:
          - run: &deploy.install-dependencies
                 ^

```

After I replaced `&deploy.install-dependencies` with `&deploy-install-dependencies`, it seems to work well.

---

<div class="post-metadata">

**Author:** ![encreinformatique](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/encreinformatique/32/19851_2.png) [@encreinformatique](https://discuss.circleci.com/u/encreinformatique)\
**Post date:** [October 18, 2022, 1:30pm UTC](https://discuss.circleci.com/t/yaml-anchor-doesnt-work/45800/2 "2022-10-18T13:30:45Z")

</div>

I have the same problem since this morning. I will try your solution but I do not understand why it stopped suddenly today. Did I miss any news or deprecation ?
