Skip to content

Commit 2fe0250

Browse files
committed
Panic if subproject discovery was not configured for project type
This would indicate a new project type was added to the tool without updating the subproject discovery code accordingly.
1 parent a842f06 commit 2fe0250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

project/project.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ func findSubprojects(superproject Type, apexSuperprojectType projecttype.Type) [
116116
case projecttype.PackageIndex:
117117
// Platform indexes don't have subprojects
118118
return nil
119+
default:
120+
panic(fmt.Sprintf("Subproject discovery not configured for project type: %s", superproject.ProjectType))
119121
}
120122

121123
// Search the subproject paths for projects

0 commit comments

Comments
 (0)