Skip to content

Conversation

@DanielG
Copy link

@DanielG DanielG commented Jun 24, 2023

This automatically embeds git version information into tarballs built with git-archive. This even works for tarballs downloaded from Github.

Essentially the same trick as in YosysHQ/yosys#3138 with one complication: git-tag information is not available to the export-subst (see gitattributes(5)) format string so we use the commit date instead.

We retain the current git-describe based string for git checkouts but it might be advisable to align this to be the HEAD commit date plus commit hash too.

@DanielG DanielG force-pushed the use-export-subst branch from 044ff37 to 182db91 Compare June 24, 2023 21:33
This automatically embeds git version information into tarballs built with
git-archive. This even works for tarballs downloaded from Github.

Essentially the same trick as in YosysHQ/yosys#3138
with one complication: git-tag information is not available to the
export-subst (see gitattributes(5)) format string so we use the commit date
instead.

We retain the current git-describe based string for git checkouts but it
might be advisable to align this to be the HEAD commit date plus commit
hash too.
@DanielG DanielG force-pushed the use-export-subst branch from 182db91 to f071c5d Compare June 24, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant