From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bengt Richter Subject: Re: 79-GiB opam checkout in ~/.cache/guix Date: Mon, 18 Nov 2019 16:03:10 -0800 Message-ID: <20191119000310.GA104886@PhantoNv4ArchGx.localdomain> References: <87v9rgokql.fsf@nckx> Reply-To: Bengt Richter Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54783) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWqzW-0005QO-6f for guix-devel@gnu.org; Mon, 18 Nov 2019 19:03:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWqzU-0007Ho-MK for guix-devel@gnu.org; Mon, 18 Nov 2019 19:03:33 -0500 Received: from imta-37.everyone.net ([216.200.145.37]:51806 helo=imta-38.everyone.net) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWqzU-0007HE-4x for guix-devel@gnu.org; Mon, 18 Nov 2019 19:03:32 -0500 Content-Disposition: inline In-Reply-To: <87v9rgokql.fsf@nckx> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Geerinckx-Rice Cc: Guix Devel Hi Tobias, On +2019-11-18 23:58:10 +0100, Tobias Geerinckx-Rice wrote: > Auntie Guix, >=20 > My SSD hurts & my ~/.cache/guix feels funny: >=20 > ~ =CE=BB du -hs ~/.cache/guix/checkouts/* | sort -h > 560K /home/nckx/.cache/guix/checkouts/hp4=E2=80=A6 > 1.3M /home/nckx/.cache/guix/checkouts/l74=E2=80=A6 > 2.5M /home/nckx/.cache/guix/checkouts/hep=E2=80=A6 > 219M /home/nckx/.cache/guix/checkouts/pjm=E2=80=A6 > 79G /home/nckx/.cache/guix/checkouts/f5u=E2=80=A6 >=20 > =E2=80=A6wait, what the hell is that last one? >=20 > ~ =CE=BB cat ~/.cache/guix/checkouts/f5u=E2=80=A6/.git/config > [core] > bare =3D false > repositoryformatversion =3D 0 > filemode =3D true > logallrefupdates =3D true > [remote "origin"] > url =3D https://github.com/ocaml/opam-repository > fetch =3D +refs/heads/*:refs/remotes/origin/* >=20 > I have no idea what this means or what has happened. I don't remember > running an opam importer recently, although I've probably run =E2=80=98= guix refresh=E2=80=99 > on an opam package or so. >=20 > Still. >=20 > According to GitHub, the repository is only 70.9 *MiB* and when I clone= it > locally it's still nowhere near a gigabyte: >=20 > ~ =CE=BB git clone https://github.com/ocaml/opam-repository > Cloning into 'opam-repository'... > Receiving objects: 100% (316368/316368), 69.07 MiB | 5.70 MiB/s, done. >=20 > ~ =CE=BB du -hs opam-repository/ > 562M opam-repository/ >=20 > Halp, >=20 > T G-R Did you possibly get recursion into a lot of unintended submodules? What would you get if you cd into opam-repository above and did per "man got-clone" below (cf. "This is equivalent to running ..." git submodule update --init --recursive (i.e. with no , to get all submodules) What is du -hs ../opam-repository after that finishes? copied from man git-clone: --8<---------------cut here---------------start------------->8--- --recurse-submodules[=3D immediately after the clone is finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --mirror is given) --8<---------------cut here---------------end--------------->8--- HTH --=20 Regards, Bengt Richter