From dc794396b32d82481f849d494df34fda918cc8e3 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sun, 23 May 2021 18:24:27 +0200 Subject: [PATCH] Use the correct scalaBinaryVersion 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. --- project/Build.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project/Build.scala b/project/Build.scala index 64f5a9e7176d..44bc6ce48097 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -123,7 +123,11 @@ object Build { else baseVersion + "-bin-SNAPSHOT" } - val dottyNonBootstrappedVersion = dottyVersion + "-nonbootstrapped" + val dottyNonBootstrappedVersion = { + // Make sure sbt always computes the scalaBinaryVersion correctly + val bin = if (!dottyVersion.contains("-bin")) "-bin" else "" + dottyVersion + bin + "-nonbootstrapped" + } val sbtCommunityBuildVersion = "0.1.0-SNAPSHOT"