From: Bengt Richter <bokr@bokr.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: 79-GiB opam checkout in ~/.cache/guix
Date: Mon, 18 Nov 2019 16:03:10 -0800 [thread overview]
Message-ID: <20191119000310.GA104886@PhantoNv4ArchGx.localdomain> (raw)
In-Reply-To: <87v9rgokql.fsf@nckx>
Hi Tobias,
On +2019-11-18 23:58:10 +0100, Tobias Geerinckx-Rice wrote:
> Auntie Guix,
>
> My SSD hurts & my ~/.cache/guix feels funny:
>
> ~ λ du -hs ~/.cache/guix/checkouts/* | sort -h
> 560K /home/nckx/.cache/guix/checkouts/hp4…
> 1.3M /home/nckx/.cache/guix/checkouts/l74…
> 2.5M /home/nckx/.cache/guix/checkouts/hep…
> 219M /home/nckx/.cache/guix/checkouts/pjm…
> 79G /home/nckx/.cache/guix/checkouts/f5u…
>
> …wait, what the hell is that last one?
>
> ~ λ cat ~/.cache/guix/checkouts/f5u…/.git/config
> [core]
> bare = false
> repositoryformatversion = 0
> filemode = true
> logallrefupdates = true
> [remote "origin"]
> url = https://github.com/ocaml/opam-repository
> fetch = +refs/heads/*:refs/remotes/origin/*
>
> 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 ‘guix refresh’
> on an opam package or so.
>
> Still.
>
> According to GitHub, the repository is only 70.9 *MiB* and when I clone it
> locally it's still nowhere near a gigabyte:
>
> ~ λ 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.
>
> ~ λ du -hs opam-repository/
> 562M opam-repository/
>
> Halp,
>
> 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 <pathspec>, 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[=<pathspec]
After the clone is created, initialize and clone
submodules within based on the provided pathspec. If no
pathspec is provided, all submodules are initialized and
cloned. This option can be given multiple times for
pathspecs consisting of multiple entries. The resulting
clone has submodule.active set to the provided pathspec,
or "." (meaning all submodules) if no pathspec is
provided.
Submodules are initialized and cloned using their
default settings. This is equivalent to running git
submodule update --init --recursive <pathspec>
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
--
Regards,
Bengt Richter
prev parent reply other threads:[~2019-11-19 0:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 22:58 79-GiB opam checkout in ~/.cache/guix Tobias Geerinckx-Rice
2019-11-19 0:03 ` Bengt Richter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191119000310.GA104886@PhantoNv4ArchGx.localdomain \
--to=bokr@bokr.com \
--cc=guix-devel@gnu.org \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).