Skip to content

Conversation

@jadenPete
Copy link

In Bazel, File#short_path is prefixed with .. if the file belongs to an external repository. However, this isn't meant to be interpreted as a relative path, as external repositories' outputs are in the external output directory.

This meant that when semanticdb_bundle was enabled and external repositories contained Scala rules, they'd fail to build, since the -P:semanticdb:sourceroot or -semanticdb-target compiler options would be computed incorrectly.

In Bazel, `File#short_path` is prefixed with `..` if the file belongs to
an external repository. However, this isn't meant to be interpreted as a
relative path, as external repositories' outputs are in the `external`
output directory.

This meant that when `semanticdb_bundle` was enabled and external
repositories contained Scala rules, they'd fail to build, since the
`-P:semanticdb:sourceroot` or `-semanticdb-target` compiler options
would be computed incorrectly.
@jadenPete jadenPete requested a review from jjudd November 19, 2024 01:03
@jadenPete jadenPete self-assigned this Nov 19, 2024
@jadenPete
Copy link
Author

By the way, I verified this works with path mapping.

@jadenPete jadenPete merged commit 8324f8b into lucid-master Nov 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants