Skip to content

Commit f28bac1

Browse files
authored
chore(scripts): use fake semver when using sapling (#8747)
The fact that the Sapling commit didn't conform to semver broke the agent handshake with coderd.
1 parent 6b92abe commit f28bac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cdroot
1717

1818
# If in Sapling, just print the commit since we don't have tags.
1919
if [ -d ".sl" ]; then
20-
sl log -l 1 | awk '/changeset/ { print substr($2, 0, 16) }'
20+
sl log -l 1 | awk '/changeset/ { printf "0.0.0+sl-%s\n", substr($2, 0, 16) }'
2121
exit 0
2222
fi
2323

0 commit comments

Comments
 (0)