!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

976 Members
For people hacking on the Nix package manager itself207 Servers

Load older messages


SenderMessageTime
10 Aug 2021
@Las:matrix.orgLas
In reply to @niksnut:matrix.org
The github fetcher is way faster than git.
Do you think there are any ways of making the Git fetcher faster?
12:45:15
@sternenseemann:systemli.orgsterni also these usually use binutils' ld.bfd which sometimes causes weird problems linking C++, so pkgsLLVM.stdenv may be worth a try which uses lld 12:46:35
@sternenseemann:systemli.orgsterni * pamplemousse: also these usually use binutils' ld.bfd which sometimes causes weird problems linking C++, so pkgsLLVM.stdenv may be worth a try which uses lld 12:46:45
@niksnut:matrix.orgniksnutQuick test: fetching github:NixOS/nixpkgs => 16.5s, git+https://github.com/NixOS/nixpkgs => 131.5s, doing the latter again => 11.3s12:48:54
@niksnut:matrix.orgniksnutFetching git+https://github.com/NixOS/nixpkgs?shallow=1 => 85.2s12:52:31
@niksnut:matrix.orgniksnutThat's probably the best we can do with git.12:52:54
@Las:matrix.orgLasHmm, thanks13:00:40
@Las:matrix.orgLasThe issue is you can't check commit signatures when using the github fetcher13:01:01
@Las:matrix.orgLas
In reply to @niksnut:matrix.org
Fetching git+https://github.com/NixOS/nixpkgs?shallow=1 => 85.2s
I tried this on my own machine, and it did indeed take ages (so long I interrupted it), but time git clone git://github.com/NixOS/nixpkgs --depth 1 took 10.31 seconds according to time.
13:31:10
@Las:matrix.orgLasAre you sure something isn't broken in the Git integration in Nix? This is an extreme difference.13:31:53
@niksnut:matrix.orgniksnut
In reply to @Las:matrix.org
I tried this on my own machine, and it did indeed take ages (so long I interrupted it), but time git clone git://github.com/NixOS/nixpkgs --depth 1 took 10.31 seconds according to time.
Yes, that's what ?shallow= does.
13:32:06
@niksnut:matrix.orgniksnuthm13:32:18
@Las:matrix.orgLasI wonder why it takes so long then13:32:20
@balsoft:balsoft.rubalsoftBTW I can confirm that Nix' fetcher is way slower than fetching manually13:32:38
@niksnut:matrix.orgniksnutNix just calls git, it doesn't fetch itself13:33:29
@niksnut:matrix.orgniksnutLooks like we're not passing --depth 113:34:39
@Las:matrix.orgLasisn't it not shallow then?13:34:48
@niksnut:matrix.orgniksnutyeah13:36:14
@pamplemouss_:matrix.orgpamplemousse
In reply to @sternenseemann:systemli.org
pamplemousse: also these usually use binutils' ld.bfd which sometimes causes weird problems linking C++, so pkgsLLVM.stdenv may be worth a try which uses lld
I think https://github.com/NixOS/nix/pull/4996/files#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0L600-R631 makes nix develop automatically pick the stdenv corresponding to what I need (I do nix develop .#nix-clang11Stdenv.
16:10:34
@pamplemouss_:matrix.orgpamplemousse sterni (he/him): and I get an /nix/store/qvc6cz5d43jhhm4a3r48xkrc82xh1s95-binutils-2.35.1/bin/ld: cannot find -lc++abi when trying to use llvmPackages_11.libcxx 17:50:04
@sternenseemann:systemli.orgsternilibcxx or libcxxStdenv?17:50:41
@pamplemouss_:matrix.orgpamplemousse libcxx
got an /nix/store/qvc6cz5d43jhhm4a3r48xkrc82xh1s95-binutils-2.35.1/bin/ld: cannot find -lc++ with libcxxStdenv
(both from llvmPackages_11)
17:59:58
@sternenseemann:systemli.orgsterni what were you doing exactly? libcxxabi is in extraPackages of libcxxClang, so it should not fail in this way 18:01:23
@vcunat:matrix.orgVladimír Čunát
In reply to @Las:matrix.org
The issue is you can't check commit signatures when using the github fetcher
Does it make sense to check git signature unless you have the whole history? (up to that commit; in particular, no --depth stuff)
18:49:20
@Las:matrix.orgLas
In reply to @vcunat:matrix.org
Does it make sense to check git signature unless you have the whole history? (up to that commit; in particular, no --depth stuff)
I'm not sure. I found other ways of heavily reducing the time it takes to fetch Nixpkgs, specifically --filter=tree:0, but it still takes 4 times as much time.
18:56:55
@Las:matrix.orgLasWith a shallow repository I can still see that the commit is signed18:57:16
@Las:matrix.orgLasBut I'm not sure if it can be trusted18:57:22
11 Aug 2021
@derkha:matrix.orgKha
In reply to @Las:matrix.org
The issue is you can't check commit signatures when using the github fetcher
And also the github fetcher is rate limited (60 requests/h per public IP(!)) while the git fetcher isn't, right?
09:08:16
@derkha:matrix.orgKha Basically github: works great until it doesn't anymore 09:08:29
@derkha:matrix.orgKha
In reply to @Las:matrix.org
The issue is you can't check commit signatures when using the github fetcher
* And also the github fetcher is rate limited (60 requests/h per public IP(!) without GH token) while the git fetcher isn't, right?
09:09:05

Show newer messages


Back to Room ListRoom Version: 6