mirror of https://github.com/coder/coder.git
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:
parent
6b92abebb9
commit
f28bac1b05
|
@ -17,7 +17,7 @@ cdroot
|
||||||
|
|
||||||
# If in Sapling, just print the commit since we don't have tags.
|
# If in Sapling, just print the commit since we don't have tags.
|
||||||
if [ -d ".sl" ]; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue