I'd prefer not to use sbt for this, as it would add +1 sec to fastpath of compilation, increasing compilation time of hello world from 200ms to 1200ms.
How about a call to the same script that sbt uses? In scripts/build IIRC
not sure if by sed/bash foo is strong enough for this
Hi, I wanted to give dotty a try... and ran into this at the first glance.
What about defining a settings like baseVersion := 0.1 in sbt, grep this in bash and add a -* expansion to it ?
Current algorithm of how bash script works:
/target using the versions discovered at previous step;Proposed new algorithm:
dotty/.versions, if it does not exists it runs sbt package;dotty/.packages containing full path to all packaged artifacts(in any format easily parsable in bash);.version and triggers rebuild if they are found;Advantages of new algorithm: