[sha] add commit SHA to describe

This commit is contained in:
Rahul De 2024-10-13 12:24:45 +01:00
parent 01cb6112f9
commit bdb27e7774

View file

@ -110,6 +110,11 @@
(def version common/version) (def version common/version)
(def build-commit-sha
(or (System/getenv "CIRCLE_SHA1")
(System/getenv "APPVEYOR_REPO_COMMIT")
(System/getenv "CIRRUS_BASE_SHA")))
(defn parse-version [version] (defn parse-version [version]
(mapv #(Integer/parseInt %) (mapv #(Integer/parseInt %)
(-> version (-> version
@ -261,6 +266,7 @@ Use bb run --help to show this help output.
(format (format
(str/trim " (str/trim "
{:babashka/version \"%s\" {:babashka/version \"%s\"
:babashka/build-sha %s
:feature/csv %s :feature/csv %s
:feature/java-nio %s :feature/java-nio %s
:feature/java-time %s :feature/java-time %s
@ -281,6 +287,7 @@ Use bb run --help to show this help output.
:feature/logging %s :feature/logging %s
:feature/priority-map %s}") :feature/priority-map %s}")
version version
build-commit-sha
features/csv? features/csv?
features/java-nio? features/java-nio?
features/java-time? features/java-time?