Skip to content

Commit b54c705

Browse files
committed
build.sh: Reset patch version when auto-dumping version tag for development snapshot
To prevent 0.1.1 from becoming 0.2.1 when it is supposed to be 0.2.0.
1 parent 66ec51d commit b54c705

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ ensure_source_tree() {
313313

314314
if [ $MADDY_SNAPSHOT -ne 0 ]; then
315315
(( MADDY_MINOR++ ))
316+
MADDY_PATCH=0
317+
316318
MADDY_VER="$MADDY_MAJOR.$MADDY_MINOR.$MADDY_PATCH-dev$MADDY_SNAPSHOT+$MADDY_COMMIT"
317319
else
318320
MADDY_VER="$MADDY_MAJOR.$MADDY_MINOR.$MADDY_PATCH+$MADDY_COMMIT"

0 commit comments

Comments
 (0)