Skip to content

fix: omit Git version metadata suffix when GitInfo is unavailable - #103

Open
AlexanderTheGrey wants to merge 1 commit into
pdobsan:mainfrom
AlexanderTheGrey:fix/tolerate-missing-git-metadata
Open

AlexanderTheGrey wants to merge 1 commit into
pdobsan:mainfrom
AlexanderTheGrey:fix/tolerate-missing-git-metadata

Conversation

@AlexanderTheGrey

Copy link
Copy Markdown

This fixes builds from release tarballs (and other non-git source trees) where GitHash’s compile-time Template Haskell splice fails because no .git directory is present.

  • Switch from tGitInfoCwd to tGitInfoCwdTry
  • Omit the git-derived version suffix when GitInfo is unavailable

Behavior is unchanged when building from a git checkout; the git-derived version info is still included.

@AlexanderTheGrey

Copy link
Copy Markdown
Author

@pdobsan Could you review and merge this PR along with #102? Together, they allow source builds without requiring Git metadata and pin the githash fork to a specific commit for reproducible builds, which helps package managers.

These changes are needed for the Homebrew formula submission in this PR:

Homebrew/homebrew-core#293039

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