From 3d32ad0e8df08d6d761dc2752653ae90c2cc02b1 Mon Sep 17 00:00:00 2001 From: syeopite <70992037+syeopite@users.noreply.github.com> Date: Mon, 25 Aug 2025 05:53:45 +0000 Subject: [PATCH] Add fallback to commit ID when version tag is missing (#7) --- src/protodec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protodec.cr b/src/protodec.cr index 7a03ec1..dc431d3 100644 --- a/src/protodec.cr +++ b/src/protodec.cr @@ -19,7 +19,7 @@ require "./protodec/utils" CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }} CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }} -CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }} +CURRENT_VERSION = {{ "#{`git describe --always --tags --abbrev=0`.strip}" }} SOFTWARE = { "name" => "protodec",