System.getProperty("file.separator") replaced by "/" to avoid build problems on windows (#75)

This commit is contained in:
sdeigm 2022-12-16 18:39:25 +01:00 committed by GitHub
parent dc140145d6
commit 573cdf4fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ object PekkoValidatePullRequest extends AutoPlugin {
loadedBuild.value.allProjectRefs.collect {
case (_, project) if !ignoredProjects.contains(project.id) =>
val directory = project.base.getPath.split(System.getProperty("file.separator")).last
val directory = project.base.getPath.split("/").last
PathGlobFilter(s"$directory/**")
}.fold(new FileFilter { // TODO: Replace with FileFilter.nothing when https://github.com/sbt/io/pull/340 gets released
override def accept(pathname: File): Boolean = false