fetchgit cannot handle https (1)
This is what I get:
Initialized empty Git repository in /nix/store/mx5dvcx7w6d3yxifkysnq5pnap7ax2dy-git-export/.git/
Submitted by Lluís Batlle i Rossell on 28 April 2011 at 22:45
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/LaurentGomila/SFML.git/info/refs
Issue Log
I’ve tested with the new fetchgit builder. The bug still exists and seems to be cause by a missing environment variable. I can reproduce it inside a nix expression and with the following command:
env - PATH=“$PATH” /bin/sh -xe pkgs/build-support/fetchgit/nix-prefetch-git –builder –url https://github.com/jquery/jquery.git –rev refs/head/master –out $(pwd)/https-fetch-git
but not when I don’t wipe out my environment:
/bin/sh -xe pkgs/build-support/fetchgit/nix-prefetch-git –builder –url https://github.com/jquery/jquery.git –rev refs/head/master –out $(pwd)/https-fetch-git
Specifically it’s the GIT_SSL_CAINFO environment variable, which should point at ${pkgs.cacert}/etc/ca-bundle.crt. This can easily be added to the fetchgit function.
Fixed at revision 28857.
Log in to post comments