Subject: Re: [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags.

From: Maxime Devos <[email-masked]>
Date: Tue, 03 May 2022 18:51:34 +0200

Attila Lendvai schreef op di 03-05-2022 om 13:42 [+0200]:
> +         (raw-subdir (if (< (string-length module-root-path)
> +                            (string-length module-path))
> +                         (substring module-path
> +                                    (+ 1 (string-length module-root-path)))
> +                         #false))

You can use (and COND (substring ...)) here.
Also, the usual extra complexity --> extra tests.

Greetings,
Maxime.