Skip to content

fix(cli): ensure stable sorting for blueprint roles in metadata#3406

Open
apeabody wants to merge 1 commit into
mainfrom
apsort
Open

fix(cli): ensure stable sorting for blueprint roles in metadata#3406
apeabody wants to merge 1 commit into
mainfrom
apsort

Conversation

@apeabody
Copy link
Copy Markdown
Collaborator

No description provided.

@apeabody apeabody requested review from a team and q2w as code owners May 11, 2026 19:23
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the sortBlueprintRoles function to perform a full lexicographical comparison of role lists, replacing the previous logic that only compared the first element. A new test case was added to verify this behavior. The reviewer suggested using slices.Compare to make the comparison more idiomatic and concise.

Comment thread cli/bpmetadata/tfconfig.go
@apeabody apeabody requested a review from g-awmalik May 11, 2026 19:55
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.

1 participant