Skip to content
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

SBT doesn't seem to be cached completely #735

Open
2 tasks done
tanin47 opened this issue Jan 22, 2025 · 1 comment
Open
2 tasks done

SBT doesn't seem to be cached completely #735

tanin47 opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@tanin47
Copy link

tanin47 commented Jan 22, 2025

Description:

Every of my CI runs contains the below lines of logs:

Run sbt compile
copying runtime jar...
...
[info] compiling 4 Scala sources to /home/runner/.sbt/1.0/staging/6154c1bd1130a4be9e4c/sbt-i18n/target/scala-2.12/sbt-1.0/classes ...
[info] compiling 1 Scala source to /home/runner/.sbt/1.0/staging/6e513ce30429beb9703a/sbt-postcss/target/scala-2.12/sbt-1.0/classes ...
[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.18. Compiling...
[info]   Compilation completed in 15.349s.
[info] done compiling
[info] compiling 2 Scala sources to /home/runner/.sbt/1.0/staging/a6bcf762d50e5451a921/sbt-svelte/target/scala-2.12/sbt-1.0/classes ...
[info] done compiling
[info] done compiling
...

It seems to compile the source code from sbt plugins every time. I wonder if there's a bug with sbt caching i.e. we aren't caching everything.

Task version:

actions/setup-java@v4

Platform:

  • Ubuntu

Runner type:

  • Hosted

Repro steps:

Our project/plugins.sbt looks like below:

lazy val root = Project("plugins", file("."))
  .aggregate(SbtSvelte, SbtI18n, sbtPostcss)
  .dependsOn(SbtSvelte, SbtI18n, sbtPostcss)
lazy val SbtSvelte = RootProject(uri("https://github.com/tanin47/sbt-svelte.git#f1e844b12a1985562f8c6e1022c824af56ddd37f"))
lazy val SbtI18n = RootProject(uri("https://github.com/GIVESocialMovement/sbt-i18n.git#e55ecf1d1858c4be87a7b34984aea5982b974e70"))
lazy val sbtPostcss = RootProject(uri("https://github.com/tanin47/sbt-postcss.git#bec39d2c65b449636cab87152859a08415f5ff52"))

Expected behavior:

We shoudn't recompile the source code of these sbt plugins every time.

Actual behavior:

It recompiles the code and takes an extra 15 seconds.

Thank you.

@tanin47 tanin47 added bug Something isn't working needs triage labels Jan 22, 2025
@priya-kinthali
Copy link

Hello @tanin47 👋,
Thank you for reporting this issue. We will investigate it and get back to you as soon as we have some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants