You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running buildozer add with a list argument (ex: buildozer add foo c b a) will always sort the list before adding, regardless of any tables or add_tables you may pass it.
Running
buildozer add
with a list argument (ex:buildozer add foo c b a
) will always sort the list before adding, regardless of any tables or add_tables you may pass it.I believe this is because the
AddValueToListAttribute
function sorts on everything other thanargs
. https://github.com/bazelbuild/buildtools/blob/main/edit/edit.go#L826Ideally buildozer would respect the same tables that buildifier would, or perhaps it would be better to defer all of the sorting to buildifier?
Buildozer test case:
The text was updated successfully, but these errors were encountered: