drop the commit id from the template values, since it is not available at render time

This commit is contained in:
Iñigo Etxaniz
2026-08-07 18:18:45 +02:00
parent 65520d0c74
commit c23059b036
+1 -2
View File
@@ -15,8 +15,7 @@ version = "{{vless .TagName}}"
gitea-sidecar renders every `*.tmpl` file in the source to its name minus the suffix before gitea-sidecar renders every `*.tmpl` file in the source to its name minus the suffix before
building the wheel, so a tag of `v0.1.1` produces version `0.1.1``vless` strips the building the wheel, so a tag of `v0.1.1` produces version `0.1.1``vless` strips the
leading `v`, which git wants and PEP 440 does not. `.TagName` and `.CommitID` are also leading `v`, which git wants and PEP 440 does not.
available for anything else worth stamping.
The tag is therefore the only place a version is written. Do not add a hardcoded version The tag is therefore the only place a version is written. Do not add a hardcoded version
back into the template: the build would keep producing that one version, and publishing a back into the template: the build would keep producing that one version, and publishing a