unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Module dependencies
@ 2022-03-19 10:10 Jérémy Korwin-Zmijowski
  2022-03-19 10:19 ` Vivien Kraus
  2022-03-19 13:41 ` Maxime Devos
  0 siblings, 2 replies; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2022-03-19 10:10 UTC (permalink / raw)
  To: Mailing list Guile User

Hey Guilers !

I would like to visualize all the modules a given module depend on.

How do you achieve that ?

Any existing tool ?

Thanks

Jérémy


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Module dependencies
  2022-03-19 10:10 Jérémy Korwin-Zmijowski
@ 2022-03-19 10:19 ` Vivien Kraus
  2022-03-19 13:41 ` Maxime Devos
  1 sibling, 0 replies; 5+ messages in thread
From: Vivien Kraus @ 2022-03-19 10:19 UTC (permalink / raw)
  To: Jérémy Korwin-Zmijowski, Mailing list Guile User

Hello Jérémy,

Le samedi 19 mars 2022 à 11:10 +0100, Jérémy Korwin-Zmijowski a écrit :
> I would like to visualize all the modules a given module depend on.

Guix seems to do it in (guix modules), see extract-dependencies, but
I’m not sure it’s very robust.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Module dependencies
@ 2022-03-19 10:58 dsmich
  2022-03-19 12:59 ` Jérémy Korwin-Zmijowski
  0 siblings, 1 reply; 5+ messages in thread
From: dsmich @ 2022-03-19 10:58 UTC (permalink / raw)
  To: 'Jérémy Korwin-Zmijowski'
  Cc: 'Mailing list Guile User'

> From: "Jérémy Korwin-Zmijowski" 
>
 > I would like to visualize all the modules a given module depend on.
 >
> How do you achieve that ?
 >
 > Any existing tool ?

Maybe this from the guile sources: module/scripts/use2dot.scm

-Dale




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Module dependencies
  2022-03-19 10:58 Module dependencies dsmich
@ 2022-03-19 12:59 ` Jérémy Korwin-Zmijowski
  0 siblings, 0 replies; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2022-03-19 12:59 UTC (permalink / raw)
  To: dsmich; +Cc: 'Mailing list Guile User'

Le samedi 19 mars 2022 à 10:58 +0000, dsmich@roadrunner.com a écrit :
> > From: "Jérémy Korwin-Zmijowski" 
> > 
>  > I would like to visualize all the modules a given module depend
> on.
> > 
> > How do you achieve that ?
> > 
>  > Any existing tool ?
> 
> Maybe this from the guile sources: module/scripts/use2dot.scm
> 
> -Dale
> 

Hello Dale,

I explored this a bit and I got what I wanted with this command line :

   guile -L . -c '(use-modules (scripts use2dot) (ynm-core entities))
   (use2dot "ynm-core/adapters.scm")' | xdot -

Thank you !

Jérémy



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Module dependencies
  2022-03-19 10:10 Jérémy Korwin-Zmijowski
  2022-03-19 10:19 ` Vivien Kraus
@ 2022-03-19 13:41 ` Maxime Devos
  1 sibling, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2022-03-19 13:41 UTC (permalink / raw)
  To: Jérémy Korwin-Zmijowski, Mailing list Guile User

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

Jérémy Korwin-Zmijowski schreef op za 19-03-2022 om 11:10 [+0100]:
> Hey Guilers !
> 
> I would like to visualize all the modules a given module depend on.
> 
> How do you achieve that ?

It's not 100% what you're asking for, but you can do

$ guix graph --type=module hello

to create a graph (in dot format) for the modules relevant to the
'hello' package.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-19 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19 10:58 Module dependencies dsmich
2022-03-19 12:59 ` Jérémy Korwin-Zmijowski
  -- strict thread matches above, loose matches on Subject: below --
2022-03-19 10:10 Jérémy Korwin-Zmijowski
2022-03-19 10:19 ` Vivien Kraus
2022-03-19 13:41 ` Maxime Devos

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).