Skip to content

Commit e3072a7

Browse files
committed
Fix cross-platform duplicate .well-known path handling
1 parent f5e38cf commit e3072a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ object LaikaBuild {
8686
).toURL()
8787

8888
InputTree[IO]
89+
// Exclude only the directory named .well-known when scanning parent dirs (e.g. src),
90+
// so it is never included twice. We add it explicitly below so it appears on all platforms.
91+
// (On Unix it's already skipped as hidden; on Windows it is included, causing duplicates.)
92+
.withFileFilter(FileFilter.lift(_.name == ".well-known"))
8993
.addDirectory("src")
90-
// Laika skips .dotfiles by default
94+
// Laika skips .dotfiles by default (Unix); we add .well-known explicitly so
95+
// it is included on all platforms at the correct virtual path.
9196
.addDirectory("src/.well-known", Path.Root / ".well-known")
9297
.addInputStream(
9398
IO.blocking(securityPolicy.openStream()),

0 commit comments

Comments
 (0)