scala-cli compile -d
always clears the directory
#1484
Labels
bug
Something isn't working
good first issue
Good for newcomers
scalac compatibility
Issues tied with compatibility with the scalac (compiler) command.
SIP-46
All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Warsaw Scala Spree
Version(s)
0.1.16
Describe the bug
for backwards compatibility, using the
-d
flag should not clear the directory before adding classes.Instead, each compilation to the directory clears it, this makes it impossible to incrementally add classes to a directory.
To Reproduce
In this example, we simulate three compilation runs of "artefacts" that output to the same directory, the idea is that at runtime the
lib
classes should still exist, but they do not in this case:Expected behaviour
no crash - program prints 23
The text was updated successfully, but these errors were encountered: