From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aBZkNiW+6F7nRwAA0tVLHw (envelope-from ) for ; Tue, 16 Jun 2020 12:42:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WNRBMiW+6F7lPwAAB5/wlQ (envelope-from ) for ; Tue, 16 Jun 2020 12:42:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56491940669 for ; Tue, 16 Jun 2020 12:42:13 +0000 (UTC) Received: from localhost ([::1]:55328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlAuq-0008Fh-9A for larch@yhetil.org; Tue, 16 Jun 2020 08:42:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlAui-0008FW-1c for guix-devel@gnu.org; Tue, 16 Jun 2020 08:42:04 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:43113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlAug-0006gT-Er for guix-devel@gnu.org; Tue, 16 Jun 2020 08:42:03 -0400 Received: by mail-wr1-x431.google.com with SMTP id l10so20582108wrr.10 for ; Tue, 16 Jun 2020 05:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=1iGbJYjiorTvwOQNvdXuSyw5CATt8gpSOHMzukS3CJg=; b=Bacmh0xl0FO+KQLjp9M/0Mrr6Wafs14sB/m1FFYZKFOUx9wDbGCMLVQSYEEcHp0pIx TSLJAqxoAqotH3uCGFrbGKda2rWP6flpxkXfPwrwwwl6imDeJ7ht1CblmZgPDJTjUPmK hH7cUehD3YZub7sfHMU+5zPGJIte/1mvDKBNJJGBFLm0P8+61nos+VF4aGcqxlAomiGy 7xEedV1a4ngOdcQoa4PkXbGV4xgLxHnRqcKbZDGB48HA8KAQQ8R8Dka/s5mUo4dQkY8c v3hXaBsYv4p0vfkewNTNqIziLf3FbAK5o1Jn4iMkyUq0ZDTxR+/4MG75/vJkWkn7YWXx IVNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=1iGbJYjiorTvwOQNvdXuSyw5CATt8gpSOHMzukS3CJg=; b=gVwIyDgzL6D2rnOj7PaT/0Z2w3mpfd2psfOwyPby/ZLkWFw12qtOQ6Gi6VMxeQZb91 KhAzZtE33itcYU2Pd554vluORlTeOTcNatIEpIrHw4FNMO7YeM6Ps+pscaVmdM+QbK6v 7dV2e+OCjxpWzozSysjHA5numaFxp/VMRQDHugBwlAk3zS86sAXtrM1ZJznyECgnLfEb UGUlGw7wnFy+X7LIjMBF1r0IX9yoxHawT+GB5q3EkDktIXMkM9Jq5zwu5M5bN3uQvsYD S2MAalGXn+EtWT2jJG6tBm7taE5W9mvTe22nIjUKwBfgDcJt1UytwjwoLQJuSgP0RN5x KOYg== X-Gm-Message-State: AOAM533BYsYm/yWD0rXms0HjZ95B0fnMXctIwLCHSI85gAR8XLqKAYKm CC8kHcEAT6Ftuo96l/XvBAno70bg X-Google-Smtp-Source: ABdhPJyE0k7rMG/X/ee9PKKz/9uIMcd6FppU1dsuToAZ/znJRmuDP07NWYsQlmg8ojhkFnQEm0RcEg== X-Received: by 2002:a5d:428e:: with SMTP id k14mr2890247wrq.21.1592311320427; Tue, 16 Jun 2020 05:42:00 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l17sm3596256wmi.16.2020.06.16.05.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 05:41:59 -0700 (PDT) From: zimoun To: Julien Lepiller , guix-devel@gnu.org, Guix Devel Subject: Re: (propagated) 'inputs' depends on 'outputs'? In-Reply-To: References: Date: Tue, 16 Jun 2020 14:41:58 +0200 Message-ID: <86zh93qj1l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x431.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Bacmh0xl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: jHdibGIf66iE Bonjour Julien, On Sat, 13 Jun 2020 at 07:38, Julien Lepiller wrote: > Exactly, no. You cannot separate inputs from outputs, because they are > part of the same derivation. When you build an output, you actually > build the complete derivation and there's no way to separate that in > "this part builds out" and "this part builds doc", etc. So it means that I need to build all the outputs even if I am interested in only one, right? If I run "guix install foo:out --no-substitutes" then I potentially build any other "outputs"" of foo, e.g., "doc" i.e., potentially download a lot of TeX stuff, or in the case of Git, all the Subversion stuff. Right? Even if at the end, only the references used by "foo:out" will be tracked and all the others potentially garbage collected. Right? > It would make sense to only propagate for some outputs: suppose at > runtime only foo:bin requires the propagation of bar. Since foo and > bar are already built, it should be possible to restrict the > propagation behaviour to that output. Foo:out would not bring in bar > anymore, reducing the closure size. Yes, it seems making sense to only propagated if the output needs it. Well, if it is not implemented yet maybe it is because it is not really necessary. :-) Thank you for explaining. It is clearer for me now. Cheers, simon