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

Sort CSV list of known entities to prevent needless doc updates #911

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Sep 8, 2023

We return a comma-separated list of known entities which is used to
generate the known entities in error messages and help output, but it
turns out that the order is not stable because we read the known
entities from iterating over a map. Let's sort the keys before returning
them to prevent getting documentation update PRs that just switch the
order.

We return a comma-separated list of known entities which is used to
generate the known entities in error messages and help output, but it
turns out that the order is not stable because we read the known
entities from iterating over a map. Let's sort the keys before returning
them to prevent getting documentation update PRs that just switch the
order.
@JAORMX JAORMX merged commit 644685b into mindersec:main Sep 8, 2023
12 checks passed
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 this pull request may close these issues.

2 participants