typelevel / typelevel/sbt-typelevel
scalacOptions don't work properly when combined with sbt-projectmatrix
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 185
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
Per a discussion with @armanbilge - we noticed that the crossScalaVersions will only display 1 scalaVersion when combined with the sbt-projectMatrix plugin. This means that this conditional is met, which is incorrect for projects that also contain Scala 2 cross builds:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala around line 153 and inspect the conditional involving crossScalaVersions when sbt-projectMatrix is present. Reproduce the behavior with a project containing Scala 2 cross builds, then confirm the conditional no longer treats the single displayed scalaVersion as the complete cross-build set.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100