Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from tarball fails #211

Closed
EbonJaeger opened this issue Sep 17, 2023 · 1 comment
Closed

Building from tarball fails #211

EbonJaeger opened this issue Sep 17, 2023 · 1 comment
Labels

Comments

@EbonJaeger
Copy link

This commit (e9aa6e9) tries to check for a .tag file in the absence of a .git directory, but there is no such file in the GitHub auto-generated source tarballs. I think for this to work, you would have to tar the source directory yourself and upload it when making the release. Projects that do this generally script it to minimize the effort.

@dragotin
Copy link
Owner

Ok, thanks for the report, this is annoying.

The quick fix is to create a file .tag in the root of the unpacked tarball which should contain the SHA of the last commit.

This command creates a correct tarball:
git archive --format=tar --prefix=kraft-1.1/ --add-file=.tag v1.1 | xz>kraft-1.1.tar.xz

It would be awesome if Githubs release mechanism would include that as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants