3p/nix: Remote builder downloads all dependencies locally, then uploads them to the remote builder - even if the remote builder already has those dependencies.

#26
Opened by aspen at 2020-08-01T02·41+00

this appears to occur even with builders-use-substitutes=true

  1. Is this based on code you read or behaviour you observed?

    tazjin at 2020-08-01T14·03+00

  2. The latter

    aspen at 2020-08-01T15·04+00

  3. understand what's going on here a little better now - it looks like builtin fetchers such as fetchTarball actually execute on the client, then upload their results to the daemon via AddToStoreNar - I can only imagine storing the result in memory along the way (ugh). What this really should be is a method in the store protocol to execute a fetcher on the target.

    aspen at 2020-08-06T03·01+00

  4. More interesting stuff here that I'm observing in upstream nix - if the path for a goal already exists on the remote builder but that remote builder is not configured as a substituter, the build will download that path from the remote builder, even though it's only necessary at the location where we're building the derivation

    aspen at 2020-08-21T13·44+00

  5. tazjin closed this issue at 2022-01-15T07·12+00