Skip to content

Commit f1d494b

Browse files
committed
use current download URL to make init work for dev releases
1 parent b87389c commit f1d494b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.mill

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def millDownloadUrl = Task {
7070
s"${millDownloadPrefix()}/${millLastTag()}"
7171
}
7272

73+
def millDownloadUrlCurrent = Task {
74+
s"${millDownloadPrefix()}/${millVersion()}"
75+
}
76+
7377
def millBinPlatform: T[String] = Task {
7478
val tag = millLastTag()
7579
tag match {

libs/init/package.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ object `package` extends MillPublishScalaModule {
2020
val data: Seq[(os.SubPath, String)] =
2121
build.dist.examplePathsWithArtifactName().map { case (pathRef, str) =>
2222
val downloadUrl =
23-
s"${build.millDownloadUrl()}/$str.zip"
23+
s"${build.millDownloadUrlCurrent()}/$str.zip"
2424
val subPath = pathRef.path.subRelativeTo(BuildCtx.workspaceRoot / "example")
2525
(subPath, downloadUrl)
2626
}

0 commit comments

Comments
 (0)