Skip to content

Commit af0de81

Browse files
authored
Merge pull request #12578 from dotty-staging/fix-binaryVersion-2
Use the correct scalaBinaryVersion for releases
2 parents e2e77b5 + dc79439 commit af0de81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

project/Build.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ 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"
130+
}
127131

128132
val sbtCommunityBuildVersion = "0.1.0-SNAPSHOT"
129133

0 commit comments

Comments
 (0)