Skip to content

Commit 7a77179

Browse files
committed
Require dottyVersion under isRelease to match RELEASE_TAG env
1 parent 4315866 commit 7a77179

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: project/Build.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@ object Build {
171171

172172
val dottyVersion = {
173173
def isNightly = sys.env.get("NIGHTLYBUILD") == Some("yes")
174-
if (isRelease)
174+
if (isRelease) {
175+
val tag = sys.env.get("RELEASE_TAG")
176+
assert(tag.contains(baseVersion), s"Expected RELEASE_TAG to contain ${baseVersion}, but it's ${tag.getOrElse("empty")}")
175177
baseVersion
176-
else if (isNightly)
178+
} else if (isNightly)
177179
baseVersion + "-RC1-bin-" + VersionUtil.commitDate + "-" + VersionUtil.gitHash + "-NIGHTLY"
178180
else
179181
baseVersion + "-RC1-bin-SNAPSHOT"

0 commit comments

Comments
 (0)