Skip to content

Verify the CI build for SBT 2 support - #935

Draft
zainab-ali wants to merge 92 commits into
typelevel:mainfrom
zainab-ali:cross-build-all-plugins
Draft

zainab-ali wants to merge 92 commits into
typelevel:mainfrom
zainab-ali:cross-build-all-plugins

Conversation

@zainab-ali

Copy link
Copy Markdown

This PR is a draft of the full changeset required to support SBT 2. It verifies that the full changeset builds in CI using SBT 2.

It is too complex to review as a whole, and will be split into smaller reviewable PRs such as #907 and #912.

@zainab-ali
zainab-ali force-pushed the cross-build-all-plugins branch from 52737f8 to 9620b19 Compare November 17, 2026 16:09
Comment thread docs/sbt-2-migration.md Resolved
Comment thread docs/sbt-2-migration.md Resolved
Comment thread docs/sbt-2-migration.md Resolved
@zainab-ali

Copy link
Copy Markdown
Author

The CI build has picked up on two transient issues:

packageInternal: file referenced by the build does not exist

See the Github actions log

[info] Running scalafix on 3 Scala sources
[error] file referenced by the build does not exist: /home/runner/work/sbt-typelevel/sbt-typelevel/target/out/jvm/scala-2.12.21/sbt-typelevel/classes/sbt/sbt.autoplugins.8aa968f4.tmp
[error] (core / Compile / packageInternal) file referenced by the build does not exist: /home/runner/work/sbt-typelevel/sbt-typelevel/target/out/jvm/scala-2.12.21/sbt-typelevel/classes/sbt/sbt.autoplugins.8aa968f4.tmp

This is most likely a bug in SBT: sbt/sbt#10085.

I haven't been able to reproduce it locally.

laikaSite: Multiple errors during parsing

See the Github actions log

[error] laika.io.internal.errors.ParserErrors: Multiple errors during parsing: Path does not exist or is not a directory: /home/runner/work/sbt-typelevel/sbt-typelevel/target/out/jvm/scala-2.12.21/docs/mdoc
[error] 	at laika.io.internal.errors.ParserErrors$.apply(errors.scala:37)
[error] 	at laika.io.model.InputTreeBuilder.build$$anonfun$1(InputTreeBuilder.scala:387)
[error] 	at delay @ fs2.io.file.FilesCompanionPlatform$AsyncFiles.isDirectory(FilesPlatform.scala:272)
[error] 	at ifM$extension @ laika.io.model.InputTreeBuilder.addDirectory$$anonfun$1(InputTreeBuilder.scala:161)
[error] 	at flatMap @ laika.io.model.InputTreeBuilder.build(InputTreeBuilder.scala:384)
[error] (docs / laikaSite) laika.io.internal.errors.ParserErrors: Multiple errors during parsing: Path does not exist or is not a directory: /home/runner/work/sbt-typelevel/sbt-typelevel/target/out/jvm/scala-2.12.21/docs/mdoc

Even though the mdoc and laikaSite tasks are run sequentially, so Laika / sourceDirectories should exist. However, laikaSite raises a ParserError due to the file not existing.

I'm able to reproduce this locally, but not consistently.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants