<#13288 include path to BUILD file where an invali...
# github-notifications
c
#13288 include path to BUILD file where an invalid target name was used Issue created by tdyas This BUILD file snippet:
Copy code
java_sources(
    dependencies=[
        "//core:lockfile"
        "//core:com.google.guava_guava",
    ],
)
led to this error due to the missing command causing the strings to be concatenated:
Copy code
InvalidTargetName: The target name lockfile//core:com.google.guava_guava (defined in directory core) contains banned characters (`:`,`/`). Please replace these characters with another separator character like `_` or `-`.
The error would have been more actionable if it had included the path to the BUILD file where the target name had been referenced. Happens with Pants
main
branch as of today. pantsbuild/pants