mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-12-02 10:15:22 +00:00
59ea86d7c0
Makes it match bazelbuild/rules_proto#189
8 lines
393 B
Python
8 lines
393 B
Python
"version information. replaced with stamped info with each release"
|
|
|
|
# This is automagically replace by git during git archive using `git export-subst`
|
|
# See https://git-scm.com/docs/git-archive#Documentation/git-archive.txt-export-subst
|
|
_VERSION_PRIVATE = "$Format:%(describe:tags=true)$"
|
|
|
|
VERSION = "0.0.0" if _VERSION_PRIVATE.startswith("$Format") else _VERSION_PRIVATE.replace("v", "", 1)
|