You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2022/12/29 21:37:56 UTC
[incubator-pekko] branch main updated: =sbt Make use of `File.separatorChar` to avoid exception. (#80)
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/main by this push:
new f26dfd92a6 =sbt Make use of `File.separatorChar` to avoid exception. (#80)
f26dfd92a6 is described below
commit f26dfd92a61c138cb673fcacd9487a484695634f
Author: kerr <he...@alibaba-inc.com>
AuthorDate: Fri Dec 30 05:37:51 2022 +0800
=sbt Make use of `File.separatorChar` to avoid exception. (#80)
---
project/ValidatePullRequest.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/project/ValidatePullRequest.scala b/project/ValidatePullRequest.scala
index 4648e0a0ea..187245eaed 100644
--- a/project/ValidatePullRequest.scala
+++ b/project/ValidatePullRequest.scala
@@ -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("/").last
+ val directory = project.base.getPath.split(java.io.File.separatorChar).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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org