Skip to content

Commit f917951

Browse files
authored
fix: lake: ensure Lake versions are SemVer compatible (#8613)
This PR changes the Lake version syntax (to `5.0.0-src+<commit>`) to ensure it is a well-formed SemVer,
1 parent 8904e5c commit f917951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lake/Lake/Version.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def version.isRelease :=
1616
Lean.version.isRelease
1717

1818
def version.specialDesc :=
19-
if isRelease && !Lean.githash.isEmpty then Lean.githash.take 7 else "src"
19+
if isRelease && !Lean.githash.isEmpty then s!"src+{Lean.githash.take 7}" else "src"
2020

2121
def versionStringCore :=
2222
s!"{version.major}.{version.minor}.{version.patch}"

0 commit comments

Comments
 (0)