[Nix-dev] Git commit hashes
Tomasz Kontusz
tomasz.kontusz at gmail.com
Tue Jun 2 18:36:38 CEST 2015
Colin Putney <colin at wiresong.com> napisał:
>On Tue, Jun 2, 2015 at 9:15 AM, Colin Putney <colin at wiresong.com>
>wrote:
>
>> Hi all,
>>
>> I'm running a small cluster with several custom-built services, and
>I'd
>> like to include git commit hashes in my logs so that I can easily
>find the
>> source code that's producing them. I thought this would be
>> straight-forward, but it's turning out to be surprisingly difficult.
>>
>> Running `git describe`
>>
>
>Ugh, premature send. Sorry.
>
>In principle, including the git hash in the output of a build should be
>deterministic: for any given working copy, there is one and only one
>commit
>hash. In practice, though, running git describe without introducing
>impurity seems to be impossible. Anybody figured out how to do this?
You can pass leaveDotGit = true into fetchgit, or pass the commit into the build script as a separate variable.
>Colin
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>nix-dev mailing list
>nix-dev at lists.science.uu.nl
>http://lists.science.uu.nl/mailman/listinfo/nix-dev
--
Wysłane za pomocą K-9 Mail.
More information about the nix-dev
mailing list