You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
If git exists, and the git repository was found, and the exit code of the git command is 0, then use the result of the git command.
Otherwise, if an environment variable such as VERSION_HASH, COMMIT_ID or GIT_COMMIT is set, then use it.
Otherwise, use an empty string or literally unknown. (none) is also fine, I guess.
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.
The text was updated successfully, but these errors were encountered:
toots
changed the title
Build Dune project without Git dependency
Build with dev informations without Git dependency
May 2, 2024
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.
The text was updated successfully, but these errors were encountered: