mirror of https://github.com/sbt/sbt.git
fix: Fixes exportJars false support
**Problem** Setting exportJars to false causes issues due to hashing of the directories. **Solution** Make exportedProducts uncached for now.
This commit is contained in:
parent
a8fc24dda6
commit
380af10e8f
|
|
@ -2614,7 +2614,9 @@ object Classpaths {
|
||||||
if isMeta && !force then (mjars ++ sbtCp).distinct
|
if isMeta && !force then (mjars ++ sbtCp).distinct
|
||||||
else mjars
|
else mjars
|
||||||
},
|
},
|
||||||
exportedProducts := ClasspathImpl.trackedExportedProducts(TrackLevel.TrackAlways).value,
|
exportedProducts := Def.uncached(
|
||||||
|
ClasspathImpl.trackedExportedProducts(TrackLevel.TrackAlways).value
|
||||||
|
),
|
||||||
exportedProductsIfMissing := ClasspathImpl
|
exportedProductsIfMissing := ClasspathImpl
|
||||||
.trackedExportedProducts(TrackLevel.TrackIfMissing)
|
.trackedExportedProducts(TrackLevel.TrackIfMissing)
|
||||||
.value,
|
.value,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
package example
|
||||||
|
|
||||||
|
@main def main(args: String*): Unit =
|
||||||
|
println("hi")
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
Global / localCacheDirectory := baseDirectory.value / "diskcache"
|
||||||
|
|
||||||
|
// https://github.com/sbt/sbt/issues/8225
|
||||||
|
exportJars := false
|
||||||
|
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0" % Test
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
> compile
|
||||||
|
|
||||||
|
> show Compile/fullClasspath
|
||||||
Loading…
Reference in New Issue