Skip to content

Commit

Permalink
fix windows path test
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Nov 8, 2024
1 parent 96d6e47 commit 68556bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/mill/main/MainModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ trait MainModule extends BaseModule0 {
def renderFileName(t: NamedTask[_]) = {
// handle both Windows or Unix separators
val fullFileName = t.ctx.fileName.replaceAll(raw"\\", "/")
val basePath = WorkspaceRoot.workspaceRoot.toString() + "/"
val basePath = WorkspaceRoot.workspaceRoot.toString().replaceAll(raw"\\", "/") + "/"
val name =
if (fullFileName.startsWith(basePath)) {
fullFileName.drop(basePath.length)
Expand Down

0 comments on commit 68556bb

Please sign in to comment.