Skip to content

Conversation

@pinotree
Copy link
Contributor

The build system tries to extract some Git build details (e.g. branch and SHA). The problem is that it assumes that both git is installed, and that the sources are in a Git repository: while this is true during a Git build, they are both not true when building from release tarballs (e.g. as done by distributions).

Hence, manually search for git and that the current sources are a Git repository:

  • if both are valid, extract the build details as done so far
  • if neither is available, still try to use .tag for the SHA, setting the value for the branch as well to it

The build system tries to extract some Git build details (e.g. branch
and SHA). The problem is that it assumes that both 'git' is installed,
and that the sources are in a Git repository: while this is true during
a Git build, they are both not true when building from release tarballs
(e.g. as done by distributions).

Hence, manually search for 'git' and that the current sources are a Git
repository:
- if both are valid, extract the build details as done so far
- if neither is available, still try to use '.tag' for the SHA, setting
  the value for the branch as well to it
@dragotin dragotin merged commit aa0e314 into dragotin:master Dec 29, 2025
2 checks passed
@dragotin
Copy link
Owner

Thanks a lot!

@pinotree pinotree deleted the no-git-info branch December 29, 2025 18:15
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.

2 participants