2023-09-24 22:06:10 +00:00
|
|
|
"version information. replaced with stamped info with each release"
|
|
|
|
|
|
|
|
# This is automagically replace by git during git archive using `git export-subst`
|
2023-11-01 16:00:27 +00:00
|
|
|
# See https://git-scm.com/docs/git-archive#Documentation/git-archive.txt-export-subst
|
2023-09-24 22:06:10 +00:00
|
|
|
_VERSION_PRIVATE = "$Format:%(describe:tags=true)$"
|
|
|
|
|
|
|
|
VERSION = "0.0.0" if _VERSION_PRIVATE.startswith("$Format") else _VERSION_PRIVATE.replace("v", "", 1)
|
2024-01-04 20:07:19 +00:00
|
|
|
|
|
|
|
# Whether bazel-lib is a pre-release, and therefore has no release artifacts to download.
|
|
|
|
# NB: When GitHub runs `git archive` to serve a source archive file,
|
|
|
|
# it honors our .gitattributes and stamps this file, e.g.
|
|
|
|
# _VERSION_PRIVATE = "v2.0.3-7-g57bfe2c1"
|
|
|
|
# From https://git-scm.com/docs/git-describe:
|
|
|
|
# > The "g" prefix stands for "git"
|
|
|
|
IS_PRERELEASE = VERSION == "0.0.0" or VERSION.find("g") >= 0
|