File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,12 @@ class AffectedModuleDetectorImpl constructor(
501501 private fun affectsAllModules (relativeFilePath : String ): Boolean {
502502 logger?.info(" Paths affecting all modules: ${config.pathsAffectingAllModules} " )
503503
504- val pathSections = relativeFilePath.toPathSections(rootProject.projectDir, git.getGitRoot())
504+ val rootProjectDir = if (config.baseDir != null ) {
505+ File (config.baseDir!! )
506+ } else {
507+ rootProject.projectDir
508+ }
509+ val pathSections = relativeFilePath.toPathSections(rootProjectDir, git.getGitRoot())
505510 val projectRelativePath = pathSections.joinToString(File .separatorChar.toString())
506511
507512 return config.pathsAffectingAllModules.any { projectRelativePath.startsWith(it) }
You can’t perform that action at this time.
0 commit comments