drop the commit id from the template values, since it is not available at render time
This commit is contained in:
@@ -15,8 +15,7 @@ version = "{{vless .TagName}}"
|
||||
|
||||
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
|
||||
leading `v`, which git wants and PEP 440 does not. `.TagName` and `.CommitID` are also
|
||||
available for anything else worth stamping.
|
||||
leading `v`, which git wants and PEP 440 does not.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user