Open vitoyucepi opened 1 month ago
Thanks I see what you mean. Do you have a specific situation where you would like to build from a downloaded archive instead of a git pull
and yet retain the github SHA in the build?
The alpine APKBUILD I use has no support for sourcing git repositories, unlike archlinux PKGBUILD which has support for something like git+https://github.com/savonet/liquidsoap.git#commit=$_commit
.
So I have to rely on the archive tarball to build from the rolling release and main branches.
Is your feature request related to a problem? Please describe. I would like to be able to build without having a direct dependency on git.
Describe the solution you'd like
git
exists, and the git repository was found, and the exit code of thegit
command is 0, then use the result of thegit
command.VERSION_HASH
,COMMIT_ID
orGIT_COMMIT
is set, then use it.Describe alternatives you've considered Maybe it would be great to integrate with
IS_SNAPSHOT
somehow.Additional context If the project is built from github source archives like
https://github.com/savonet/liquidsoap/archive/$_commit.tar.gz
, then the git repository will not be available, but the commit could easily be set using the environment variable.In addition, it would be great to explain all build time environment variables in the build manual.