From 003acdc4e24721dad5604460897e18030153913c Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Fri, 13 Dec 2024 14:34:44 +0800 Subject: [PATCH] Stub out mill version for selective testing (#4126) Needs to happen separately from https://github.com/com-lihaoyi/mill/pull/4118 since I need it on both the PR branch and on the main target branch for the selective testing to be effective --- build.mill | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.mill b/build.mill index 02b4f126b8a..4a4a0e7305a 100644 --- a/build.mill +++ b/build.mill @@ -256,7 +256,11 @@ object Deps { } } -def millVersion: T[String] = Task { VcsVersion.vcsState().format() } +def millVersion: T[String] = Task { + if (Task.env.contains("MILL_STABLE_VERSION")) VcsVersion.calcVcsState(Task.log).format() + else "DEV" +} + def millLastTag: T[String] = Task { VcsVersion.vcsState().lastTag.getOrElse(