zinc icon indicating copy to clipboard operation
zinc copied to clipboard

Allow operation without a filesystem

Open stephenjudkins opened this issue 5 years ago • 3 comments

Currently, input and output files are specified in the API in terms of java.io.File. The underlying Scala compiler, however, does not require interaction with the filesystem. If inputs and outputs could be handled through in-memory data structures it could open the door for some optimizations in some cases (in this case, in the https://github.com/higherkindness/rules_scala project).

I'm aware this is a large issue, but figured I'd open it to signal support.

stephenjudkins avatar Dec 10 '19 20:12 stephenjudkins

@stephenjudkins Thanks. I am sort of working on this here - https://github.com/sbt/zinc/pull/712

eed3si9n avatar Dec 10 '19 21:12 eed3si9n

This is wonderful, I'm glad to know it's being worked on.

stephenjudkins avatar Dec 10 '19 21:12 stephenjudkins

@stephenjudkins I now have tests passing with in-memory source code. I don't know how difficult it would be to abstract the JAR files, but I feel like I should just allow JAR files to be.

eed3si9n avatar Jan 08 '20 17:01 eed3si9n