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

Allow builds from 'git archive' generated tarballs #2187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alerque
Copy link

@alerque alerque commented Apr 15, 2024

The current release can be build from git clone sources because running git rev-parse HEAD at build time works, but it fails to build from an archive tarball such as is generated by GitHub when you download the source link on a release and generated with git archive.

This fixes that by first checking an env var that a user can set by using export TAR_COMMIT_ID=$(git get-tar-commit-id <package>.tar.gz). It isn't a pancea and requires some intervention, but at least it makes it possible to build without a patch, etc.

build.rs Outdated Show resolved Hide resolved
@extrawurst
Copy link
Owner

@alerque please add a changelog entry matching other contributions

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.

None yet

2 participants