Skip to content

Conversation

aignas
Copy link

@aignas aignas commented Aug 18, 2025

It seems that this was causing issues for some of the rules_pythons
hooks. Hopefully the sort allows us to be more deterministic no matter
how the files are ordered.

It seems that this was causing issues for some of the rules_pythons
hooks. Hopefully the sort allows us to be more deterministic no matter
how the files are ordered.
pkgs=( "${sorted_abs_path_pkgs[@]#"${workspace_root}/"}")

print_by_line "${pkgs[@]}"
print_by_line "${pkgs[@]}" | sort
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this should be sorted already on lines 109-112. Can you capture an example where it is not sorted? A fix may need to be applied to sort_items.

@brandonchinn178
Copy link

Ah I think rules_python is on an old version of bazel_starlib that didn't have LC_ALL=C. I'll update that

@aignas
Copy link
Author

aignas commented Aug 19, 2025

Ah sorry for that, thanks!

@aignas aignas closed this Aug 19, 2025
@aignas aignas deleted the aignas.fix.delete_pkgs.sort branch August 19, 2025 05:19
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.

3 participants