summary refs log tree commit diff
path: root/pkgs/build-support/fetchrepoproject
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2017-09-16 21:53:16 +0200
committerMichael Weiss <dev.primeos@gmail.com>2017-09-16 22:13:56 +0200
commit337380ea1de122c74d4dfaf7709a34f2448896f5 (patch)
tree04c9a379f7b169dd0bb2905e6066e5474fd19cce /pkgs/build-support/fetchrepoproject
parent8ceb2098302c4af3990ae6d2e5affc2d77455f03 (diff)
downloadnixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar.gz
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar.bz2
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar.lz
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar.xz
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.tar.zst
nixpkgs-337380ea1de122c74d4dfaf7709a34f2448896f5.zip
gitRepo: Fix an error due to missing TLS certificates
This was a problem when run inside a sandbox, e.g. via
"fetchRepoProject". The error message from repo seems unrelated:

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error no host given

But the exception is actually thrown due to missing certificates
(/etc/ssl/certs). It should be possible to provide another location via
environment variables (e.g. SSL_CERT_FILE, REQUESTS_CA_BUNDLE or
CURL_CA_BUNDLE) but apparently that doesn't actually work for some
reason (would have to study our Python packaging).

Now "fetchRepoProject" works without the "--no-clone-bundle" option.
Diffstat (limited to 'pkgs/build-support/fetchrepoproject')
-rw-r--r--pkgs/build-support/fetchrepoproject/default.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchrepoproject/default.nix b/pkgs/build-support/fetchrepoproject/default.nix
index b16552be310..2e5fbe79435 100644
--- a/pkgs/build-support/fetchrepoproject/default.nix
+++ b/pkgs/build-support/fetchrepoproject/default.nix
@@ -21,8 +21,6 @@ let
     "--manifest-url=${manifest}"
     "--manifest-branch=${rev}"
     "--depth=1"
-    #TODO: fetching clone.bundle seems to fail spectacularly inside a sandbox.
-    "--no-clone-bundle"
     (optionalString createMirror "--mirror")
     (optionalString useArchive "--archive")
   ] ++ extraRepoInitFlags;