Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deck file render canonical order #1526

Open
1 task
mheap opened this issue Feb 12, 2025 · 1 comment
Open
1 task

deck file render canonical order #1526

mheap opened this issue Feb 12, 2025 · 1 comment

Comments

@mheap
Copy link
Member

mheap commented Feb 12, 2025

When deck file render runs, the output file is not deterministically ordered. This causes issues when customers run git diff.

We hit a similar problem internally with our openapi tooling (and solve it with https://github.com/thim81/openapi-format).

Acceptance Criteria

  • Running deck file render multiple times results in the same output (checked by running cat output.yaml | sha246sum
@Tieske
Copy link
Member

Tieske commented Feb 12, 2025

I think this should be a separate command; eg. deck file canonicalize, and possibly should be added as flags to any other command where it makes sense, eg. deck file xxxxxx --canonicalize or deck gateway dump --canonicalize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants