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
* Minimal C bindings
* Fix version reporting in C bindings
* Apply suggestions about C bindings implementation
* Rename compat/ -> c-bindings/
* Add comment about indexing VMs in C bindings
Running gazelle to generate a new BUILD file results in a different load() vs regenerating an existing file.
When generating a new file, the load() order is determined by the order defined here:
https://github.com/bazelbuild/rules_go/blob/master/go/tools/gazelle/generator/generator.go#L165
When regenerating an existing file, the merge process sorts the entries before producing the output.
https://github.com/bazelbuild/rules_go/blob/master/go/tools/gazelle/merger/merger.go#L142
I would expect gazelle to produce consistent output given consistent input of the go source files.
One possible fix would be to sort the rules list in generator.go.
To reproduce:
Produces
The text was updated successfully, but these errors were encountered: