aspect-build / aspect-cli

correct, fast, usable: choose three
https://aspect.build/cli
Apache License 2.0
93 stars 21 forks source link

gazelle/kotln: Fix import resolution to use ancestor packages #753

Open gonzojive opened 1 month ago

gonzojive commented 1 month ago

When a Kotlin file imports "xyz.abc.foo.Bar.Baz", gazelle will only resolve the import successfully if "xyz.abc.foo.Bar" can be resolved to a Bazel label.

The plugin should also check if "xyz.abc.foo", "xyz.abc", or "xyz" resolve to a bazel label.


Changes are visible to end-users: yes

Test plan