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.
This commit is contained in:
Ammar Bandukwala 2023-07-26 15:00:21 -05:00 committed by GitHub
parent 6b92abebb9
commit f28bac1b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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