scala-cli
scala-cli copied to clipboard
Scala CLI prints warning about project root directory when all sources are in the same directory
Version(s)
0.2.0
Describe the bug Scala CLI prints warning about projet root direcotry even if all files are in the same directory.
To Reproduce
➜ scala-demo tree
.
├── demo.scala
└── demo.test.scala
0 directories, 2 files
➜ scala-demo scala-cli demo.scala demo.test.scala
Warning: setting /private/tmp/scala-demo as the project root directory for this run.
Compiling project (Scala 3.2.2, JVM)
Expected behaviour I would expect that if all files are in the same directory, the warning will not be printed.
I can confirm this still happens with Scala 3.4.1 and Scala CLI 1.2.2.
Also, adding an empty project.scala or build.scala file in that directory doesn't better the situation.