-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source is internal and has private methods #67
Comments
This was referenced Jul 30, 2017
While porting sbt-scalatex to sbt 1.0 I hit on this error
I could not find references to watchSources in http://www.scala-sbt.org/1.x/docs/Migrating-from-sbt-013x.html Would it be possible to provide an implicit Append for File to Source to ease cross-building? |
FWIW, my workaround is to provide an implicit conversion in a PluginCompat object // src/main/scala-sbt-1.0/scalatex/PluginCompat.scala
package scalatex
import sbt._
import sbt.internal.io.Source
object PluginCompat {
implicit def fileToInternalSource(file: File): Source =
new Source(file, AllPassFilter, NothingFilter)
} |
Let's call this one closed with:
.. no? |
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Source
type, which is used forwatchSources
, is "internal" (why?) and only has private methods. When testing that the files included bywatchSources
are correct, this is very inconvenient.The text was updated successfully, but these errors were encountered: