Skip to content

Commit

Permalink
tweak last tag to prevent spurious invalidations
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jan 24, 2025
1 parent 8ce4797 commit 256a7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def millVersion: T[String] = Task.Input {
} else "SNAPSHOT"
}

def millLastTag: T[String] = Task {
def millLastTag: T[String] = Task.Input {
if (Task.env.contains("MILL_STABLE_VERSION")) {
VcsVersion.vcsState().lastTag.getOrElse(
VcsVersion.calcVcsState(Task.log).lastTag.getOrElse(
sys.error("No (last) git tag found. Your git history seems incomplete!")
)
} else "SNAPSHOT"
Expand Down

0 comments on commit 256a7ac

Please sign in to comment.