typelevel / typelevel/sbt-typelevel

scalacOptions don't work properly when combined with sbt-projectmatrix

Open
#464 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug settings
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:

https://github.com/typelevel/sbt-typelevel/blob/series/0.4/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala#L153

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.