Running lein monolith graph on our project currently produces java.lang.StringIndexOutOfBoundsException: String index out of range: -1. This only happens when the name of a cluster (the % in the anonymous function) is equal to the root of the project.
The end result after this PR is that clusters at the root of the project have no label, while those that aren't get a label.
Running
lein monolith graph
on our project currently producesjava.lang.StringIndexOutOfBoundsException: String index out of range: -1
. This only happens when the name of a cluster (the%
in the anonymous function) is equal to the root of the project.The end result after this PR is that clusters at the root of the project have no label, while those that aren't get a label.