May 14, 2026 fsLeg via SlackBuilds-users:

> What about cases where the build process relies on the source tree being a 
> proper git repo as it uses commit history?

What if you have a `git` script that mocks the desired output and you put it in 
the PATH so it will take precedence over `/usr/bin/git`?

Imagine the build process uses:
-----------------------------
git rev-list --max-count=1 HEAD
-----------------------------

then your got script would be:
-----------------------------
cat /path/to/mocking/git
#! /bin/sh
echo <commit_hash>
-----------------------------

then, the SlackBuild would have:
-----------------------------
export PATH=/path/to/mocking:$PATH
-----------------------------


-Shahab
_______________________________________________
SlackBuilds-users mailing list
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to