From f28bac1b0546e23de32cd38bb0cdaca4551bc753 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Wed, 26 Jul 2023 15:00:21 -0500 Subject: [PATCH] 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. --- scripts/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/version.sh b/scripts/version.sh index 841b9627c4..42b5536da6 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