Skip to content

Embed version in git-archive tarballs and populate VERSION from it when set#105

Merged
Foxboron merged 1 commit intoFoxboron:masterfrom
jas4711:tarball-version
Apr 27, 2026
Merged

Embed version in git-archive tarballs and populate VERSION from it when set#105
Foxboron merged 1 commit intoFoxboron:masterfrom
jas4711:tarball-version

Conversation

@jas4711
Copy link
Copy Markdown
Contributor

@jas4711 jas4711 commented Nov 26, 2025

Here is an idea for this -- it works if the tarballs are created by 'git archive', for example like this:

git archive --prefix=ssh-tpm-agent-$(git describe --abbrev=7)/ -o ssh-tpm-agent-$(git describe --abbrev=7)-src.tar.gz HEAD

Some git hosting sites supports .gitattribute $Format$ export substitution, not sure about GitHub.

Cheers,
Simon

Closes: #90

@Foxboron
Copy link
Copy Markdown
Owner

Cool, thanks. I need to test this before merging :) I'll get on it at some point.

@Foxboron Foxboron merged commit 3854ff2 into Foxboron:master Apr 27, 2026
@Foxboron
Copy link
Copy Markdown
Owner

I merged this along with an additional change that uploads a signed source tarball to git. I realized I should have done this years ago anyway.

Thanks!

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.

Release tarball needs an embedded version file

2 participants