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

konstraint doc randomly reorders parameters #550

Closed
zephyrdb opened this issue Nov 20, 2024 · 0 comments · Fixed by #554
Closed

konstraint doc randomly reorders parameters #550

zephyrdb opened this issue Nov 20, 2024 · 0 comments · Fixed by #554

Comments

@zephyrdb
Copy link
Contributor

We run konstraint doc a lot, and we just added our first policy with multiple parameters. The parameters are sometimes randomly reordered in the policies.md file, which is annoying and means I end up running konstraint doc again until they stay the way they were. I traced the problem here:

for param, config := range parameters {

Go map elements are returned in random order. It would be helpful if they could be sorted before this line.

Thanks.

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

Successfully merging a pull request may close this issue.

1 participant