Hi,
we are using sbt and sbt-scalfmt for quite some time on our internal cicd-runner, which is located behind a corporate firewall. Internet access is limited but we can request to open https access to various sites.
Until last week sbt-scalafmt worked fine (we were using 2.5.5 and calling scalafmtCheckAll). Since our upgrade to 2.5.6 the sbt job get stuck and after 30min it errors out with
org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: Missing config [/builds/enya-dap-core/source2landing/database-ingest/.scalafmt.conf]
The message is confusing because there is a .scalafmt.conf
The change was:

reverting back to 2.5.5 solves the issue.
Due to this long waiting period of 30min and the fact that it works on my local machine (sbt 1.9.7) where I have full internet access, I assume that some download is intended to happen from a location we have no access to.
Any ideas on what has changed here?
The log for 2.5.6 looks like this:
++ sbt --timings -Denv=dev -DbuildTimestamp=20251106111349 clean update scalafmtCheckAll test publish assembly doc
downloading sbt launcher 1.10.11
copying runtime jar...
[info] Updated file /builds/enya-dap-core/source2landing/database-ingest/project/build.properties: set sbt.version to 1.10.11
[info] welcome to sbt 1.10.11 (Amazon.com Inc. Java 17.0.17)
[info] loading settings for project database-ingest-build from plugins.sbt...
[info] loading project definition from /builds/enya-dap-core/source2landing/database-ingest/project
[info] compiling 1 Scala source to /builds/enya-dap-core/source2landing/database-ingest/project/target/scala-2.12/sbt-1.0/classes ...
[info] done compiling
[info] Total time: 15005 ms
...
[info] scalafmt: Checking 11 Scala sources (/builds/enya-dap-core/source2landing/database-ingest)...
[info] Total time: 1938827 ms
[info] database-ingest / Compile / scalafmtCheck : 1938776 ms
[info] database-ingest / Test / scalafmtCheck : 600010 ms
[info] database-ingest / Test / unmanagedSources / allInputPathsAndAttributes : 48 ms
[info] database-ingest / Compile / unmanagedSources / allInputPathsAndAttributes: 24 ms
[info] database-ingest / Compile / unmanagedSources / inputFileStamps : 11 ms
[info] database-ingest / IntegrationTest / scalafmtCheck : 3 ms
[info] database-ingest / Test / unmanagedSources / inputFileStamps : 2 ms
[error] org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: Missing config [/builds/enya-dap-core/source2landing/database-ingest/.scalafmt.conf]
[error] (Test / scalafmtCheck) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: Missing config [/builds/enya-dap-core/source2landing/database-ingest/.scalafmt.conf]
[error] Total time: 1939 s (0:32:19.0), completed Nov 6, 2025, 11:46:43 AM
Total time: 1964699 ms
With 2.5.5 scalafmt finishes in 6secs
...
[info] scalafmt: Checking 11 Scala sources (/builds/enya-dap-core/source2landing/database-ingest)...
[info] scalafmt: Checking 5 Scala sources (/builds/enya-dap-core/source2landing/database-ingest)...
[info] Total time: 5636 ms
[info] database-ingest / Compile / scalafmtCheck : 5570 ms
[info] database-ingest / Test / scalafmtCheck : 5369 ms
[info] database-ingest / Test / unmanagedSources / allInputPathsAndAttributes : 31 ms
[info] database-ingest / Compile / unmanagedSources / allInputPathsAndAttributes: 31 ms
[info] database-ingest / Test / unmanagedSources / inputFileStamps : 7 ms
[info] database-ingest / Compile / unmanagedSources / inputFileStamps : 3 ms
[info] database-ingest / IntegrationTest / scalafmtCheck : 3 ms
[success] Total time: 6 s, completed Nov 6, 2025, 10:58:29 AM
Thanks a lot, Christian
Hi,
we are using sbt and sbt-scalfmt for quite some time on our internal cicd-runner, which is located behind a corporate firewall. Internet access is limited but we can request to open https access to various sites.
Until last week sbt-scalafmt worked fine (we were using 2.5.5 and calling scalafmtCheckAll). Since our upgrade to 2.5.6 the sbt job get stuck and after 30min it errors out with
The message is confusing because there is a
.scalafmt.confThe change was:

reverting back to 2.5.5 solves the issue.
Due to this long waiting period of 30min and the fact that it works on my local machine (sbt 1.9.7) where I have full internet access, I assume that some download is intended to happen from a location we have no access to.
Any ideas on what has changed here?
The log for 2.5.6 looks like this:
With 2.5.5 scalafmt finishes in 6secs
Thanks a lot, Christian