Skip to content

Commit

Permalink
Hardcode millBinPlatform to 0.11 (#3353)
Browse files Browse the repository at this point in the history
Since 0.12.x is meant to be bincompatible with 0.11.x
  • Loading branch information
lihaoyi authored Aug 8, 2024
1 parent 0ad6c82 commit cac477e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@ def millLastTag: T[String] = T {
}

def millBinPlatform: T[String] = T {
val tag = millLastTag()
if (tag.contains("-M")) tag
else {
val pos = if (tag.startsWith("0.")) 2 else 1
tag.split("[.]", pos + 1).take(pos).mkString(".")
}
//val tag = millLastTag()
//if (tag.contains("-M")) tag
//else {
// val pos = if (tag.startsWith("0.")) 2 else 1
// tag.split("[.]", pos + 1).take(pos).mkString(".")
//}
"0.11"
}

def baseDir = build.millSourcePath
Expand Down

0 comments on commit cac477e

Please sign in to comment.