On 2022-11-22, zimoun wrote:
> On Mon, 21 Nov 2022 at 19:06, jgart <[email protected]> wrote:
>
>> is there a command to build all dependents of a package?
>
> [...]
>
>> $ guix refresh python-identify -l
>> Building the following 14 packages would ensure 28 dependent packages
>> are rebuilt: [email protected] [email protected]
>> [email protected]
>> [email protected] [email protected] [email protected]
>> [email protected] [email protected] [email protected]
>> [email protected] [email protected] [email protected]
>> [email protected] [email protected] 
>
>    $ guix build $(guix refresh python-identify -l | cut -f2 -d':')

This sometimes requires some manual fiddling, in my experience, e.g.:

  $ guix refresh --list-dependent guile-ssh
  Building the following 9 packages would ensure 10 dependent packages
  are rebuilt: [email protected] [email protected]
  [email protected] [email protected] [email protected]
  [email protected] [email protected]
  [email protected] [email protected]
  $ guix build [email protected]
  guix build: error: guix-daemon: package not found for version 
1.3.0rc2-1.566982b

As the "guix-daemon" package is sometimes called "guix" instead. Not
sure how many other cases like this there are.

Given that it may in some cases require manually fiddling of package
names, "guix refresh --build-dependent PACKAGE" would be nice.

I vaguely recall discussing on irc not long ago the desire for "guix
refresh --list-dependent --machine-readable" (e.g. drop the "Building
the following X packages would ensure 10 dependent packages are
rebuilt:") or something similar. Would save having to pipe to cut, awk,
sed, perl, etc. ...

I could also see, at least for completeness, "guix refresh
--list-all-dependent" e.g. not hide the recursive dependencies,
but show the whole list of packages to be rebuilt...

I thought there was a bug about these sorts of things, but I haven't
found it...

live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to