From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG9WM-0006Cm-17 for guix-patches@gnu.org; Wed, 31 May 2017 15:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG9WI-0006nT-4m for guix-patches@gnu.org; Wed, 31 May 2017 15:43:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG9WI-0006nG-1W for guix-patches@gnu.org; Wed, 31 May 2017 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dG9WH-0005B2-Rb for guix-patches@gnu.org; Wed, 31 May 2017 15:43:01 -0400 Subject: bug#27162: [PATCH 0/6] Display how much will be downloaded Resent-Message-ID: MIME-Version: 1.0 In-Reply-To: <20170531134941.8012-1-ludo@gnu.org> References: <20170531134941.8012-1-ludo@gnu.org> From: Maxim Cournoyer Date: Wed, 31 May 2017 12:42:29 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27162@debbugs.gnu.org Hi! On Wed, May 31, 2017 at 6:49 AM, Ludovic Court=C3=A8s wrote: > Hello! > > With this patch series, =E2=80=98show-what-to-build=E2=80=99 can display = the download > size and warn about lack of disk space when needed: > > $ ./pre-inst-env guix build synfigstudio -n > substitute: updating list of substitutes from 'https://bayfront.guixsd.= org'... 100.0% > 10.8 MB would be downloaded: > /gnu/store/jq80lq3xhib81fi2v6j7ygh7mqdjrjsx-synfigstudio-1.2.0 > /gnu/store/azvp0257q9yhl0b409q1s6h67pfhaknr-libxml++-3.0.1 > /gnu/store/bjmwcqxr32g48jzwc0zc993m8x3ymq5h-synfig-1.2.0 > /gnu/store/lxmviq543w2a4ahc4c77i542sl921bbl-mlt-6.4.1 > guix build: warning: at least 73.8 MB needed but only 42.0 MB available= in /gnu/store > > Thoughts? This is really neat! Thanks for that. Shouldn't the default behavior of build to stop right there (even without the -n flag) and errors out when it "knows" there won't be enough space to successfully build the derivations? This would prevent bad surprises and is still non-interactive. If the current ability of failing a build because of lack of disk space would still be desired for some reason, a force flag could allow it anyway. My 2 cents, Maxim