From 50b8154235b6205843d91c8dc24d15095027c315 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Wed, 26 Jul 2023 19:54:08 +0000 Subject: [PATCH] chore(scripts): use fake semver when using sapling The fact that the Sapling commit didn't conform to semver broke the agent handshake with coderd. --- scripts/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/version.sh b/scripts/version.sh index 841b9627c4e50..42b5536da610d 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -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