Fix a wrong usage of LabelConstants.EXTERNAL_PACKAGE_NAME. PackageIdentifier#getPackagePath is used for constructing artifact paths (primarily derived artifacts), not package names, so LabelConstants.EXTERNAL_PATH_PREFIX is the correct one to use there.
@@ -185,7 +185,7 @@ public final class PackageIdentifier implements Comparable<PackageIdentifier>, S
public PathFragment getPackagePath(boolean siblingRepositoryLayout) {
return repository.isDefault() || repository.isMain() || siblingRepositoryLayout
? pkgName
- : LabelConstants.EXTERNAL_PACKAGE_NAME
+ : LabelConstants.EXTERNAL_PATH_PREFIX
.getRelative(repository.strippedName())
.getRelative(pkgName);
}
