Skip to content

Commit

Permalink
Stub out mill version for selective testing (#4126)
Browse files Browse the repository at this point in the history
Needs to happen separately from
#4118 since I need it on both
the PR branch and on the main target branch for the selective testing to
be effective
  • Loading branch information
lihaoyi authored Dec 13, 2024
1 parent da37921 commit 003acdc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 003acdc

Please sign in to comment.