carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.63k stars 137 forks source link

Unexpected behavior for key named 'on' #487

Closed DennisDenuto closed 2 years ago

DennisDenuto commented 2 years ago

What steps did you take: I was trying to create a template for a github action:

on:
  push:
    branches:
      - develop

What happened: ytt -f github-action.yml

results in:

true:
  push:
    branches:
    - develop

What did you expect: For the key 'on' to stay as 'on' and not change to 'true'

Environment:


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

pivotaljohn commented 2 years ago

duplicate of #407.