[Nix-dev] Re: ‘nix-prefetch-git’ optimizations
Ludovic Courtès
ludo at gnu.org
Mon Jan 25 14:29:10 CET 2010
Hello,
Nicolas Pierron
<nicolas.b.pierron at gmail.com> writes:
> 2010/1/25 Ludovic Courtès <ludo at gnu.org>:
[...]
>> Besides, this technique prevents “git describe” from working, probably
>> because it can’t access all the tags and history. This causes problems
>> to most projects at http://hydra.nixos.org/project/gnu because they
>> derive their version string from the output of “git describe” – a very
>> useful feature because it leads to source tarballs with a git commit
>> hash in their names. In some cases having a wrong version string can
>> even lead to test failures.
>>
>> Any idea how to restore that functionality?
>
> May be you can add an environment variable which causes the function
> "checkout_ref" to return 1.
OK, I just did that.
Thanks!
Ludo’.
More information about the nix-dev
mailing list