-
Notifications
You must be signed in to change notification settings - Fork 322
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
Remove coursier cache from slug #131
Comments
We ran into the same thing. Seems to be a quick fix, I can try to put a PR up tonight, but: heroku-buildpack-scala/bin/compile Lines 177 to 180 in f9e6ab2
.coursier but the directory name, as noted, is .cache
|
PR available: #148 |
Incidentally, as a temporary workaround, we've done this in .settings(
// ...
stageCleanupTask := {
val localStage = (stage in Universal).value
val log = streams.value.log
if (sys.env.getOrElse("POST_STAGE_CLEAN", "true").equals("true")) {
def cleanup(base: File): PathFinder = {
// build artifacts typically within a "target" dir, but even
// the root's aren't needed
base ** "target" * ("scala-2.12" || "streams") +++
// any 'target' directory that isn't the root project's
((base ** "target") --- (base / "target")) +++
// ivy2 or coursier lib caches
base ** (".ivy2" || ".cache")
}
sbt.IO.delete(cleanup(baseDirectory.value).get)
}
localStage
},
stage := stageCleanupTask.value,
// ...
|
This seems to be fixed since 18da922, closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Coursier leaves a large
.sbt_home/.cache/coursier/
directory in the slug. I'm not sure what it's job is, but it can probably be removed from the slug and kept in the build cache.The text was updated successfully, but these errors were encountered: