amperity / lein-monolith

Leiningen plugin for working with monorepos.
Other
214 stars 18 forks source link

Fix crash in lein-monolith graph when root and cluster name are equal #31

Closed MatthewDarling closed 7 years ago

MatthewDarling commented 7 years ago

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.