Skip to content

Commit b253559

Browse files
committed
Use the correct scalaBinaryVersion correctly for releases
Previously, the non-bootstrapped 3.0.1-RC1 would have had version `3.0.1-nonbootstrapped` for which sbt would compute the binary version `3.0.1-nonbootstrapped` since we publish a compiler compiled with that version, this is the binary version that would have ended up on Maven. Fixed by instead making sure the non-bootstrapped release version is `3.0.1-bin-nonbootstrapped` which sbt will interpret correctly.
1 parent d2dd083 commit b253559

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

project/Build.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ object Build {
123123
else
124124
baseVersion + "-bin-SNAPSHOT"
125125
}
126-
val dottyNonBootstrappedVersion = dottyVersion + "-nonbootstrapped"
126+
val dottyNonBootstrappedVersion =
127+
// Make sure sbt always computes the scalaBinaryVersion correctly
128+
val bin = if (!dottyVersion.contains("-bin")) "-bin" else ""
129+
dottyVersion + bin + "-nonbootstrapped"
127130

128131
val sbtCommunityBuildVersion = "0.1.0-SNAPSHOT"
129132

0 commit comments

Comments
 (0)