While the current integration of "github.com/smacker/go-tree-sitter" in the gazelle plugin for python works in a standard repo. If "github.com/smacker/go-tree-sitter" is also used as a dependency of another plugin passed to the gazelle_binary, gazelle will fail to run with:
package conflict error: github.com/smacker/go-tree-sitter: multiple copies of package passed to linker:
This seems to be due to the patch passed to "github.com/smacker/go-tree-sitter" from bazel-contrib/rules_python/gazelle
Removing said patch fixes the package conflict error.
bazel run //:gazelleUncomment line 34 of MODULE.bazel
# "//patches:smacker-unpatch.patch",Then run:
bazel run //:gazelle