Skip to content

Olsworn/rules_python_gazelle_smacker

Repository files navigation

bazel-contrib/rules_python/gazelle repro smacker package conflict

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.

Reproduction steps

bazel run //:gazelle

Applying patch

Uncomment line 34 of MODULE.bazel

  # "//patches:smacker-unpatch.patch",

Then run:

bazel run //:gazelle

About

Minimal reproduction of package conflicts with smacker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published