You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update reference, MiMa previous version and sync TASTy version (scala#22187)
* We now document better how and when tasty version should be set
* Add additional runtime test to ensure we don't emit invalid TASTy
version during Release / NIGHTLY releases and the expected version set
in build matches version defined in TastyFormat
case other => sys.error(s"Invalid TASTy version string: $expectedTastyVersion")
2121
+
}
2122
+
2123
+
if(isNightly) {
2124
+
assert(tastyIsExperimental, "TASTY needs to be experimental in nightly builds")
2125
+
valexpectedTastyMinor= version.patch match {
2126
+
case0=> version.minor
2127
+
case1if referenceV.patch ==0&& referenceV.isRC =>
2128
+
// Special case for a period when reference version is a new unstable minor
2129
+
// Needed for non_bootstrapped tests requiring either stable tasty or the same experimental version produced by both reference and bootstrapped compiler
2130
+
assert(version.minor == referenceV.minor, "Expected reference and base version to use the same minor")
2131
+
version.minor
2132
+
case _ => version.minor +1
2133
+
}
2134
+
assert(tastyMinor == expectedTastyMinor, "Invalid TASTy minor version")
2135
+
}
2136
+
2137
+
if(isRelease) {
2138
+
assert(version.minor == tastyMinor, "Minor versions of TASTY vesion and Scala version should match in release builds")
2139
+
assert(!referenceV.isRC, "Stable release needs to use stable compiler version")
2140
+
if (version.isRC && version.patch ==0)
2141
+
assert(tastyIsExperimental, "TASTy should be experimental when releasing a new minor version RC")
2142
+
else
2143
+
assert(!tastyIsExperimental, "Stable version cannot use experimental TASTY")
0 commit comments