GNU bug report logs -
#67898
[PATCH] guix: import: composer: Handle parsing failures.
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Tue, 19 Dec 2023 11:21:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Graves <ngraves <at> ngraves.fr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 2024-04-05 22:09, Ludovic Courtès wrote:
>> + (match composer-package
>> + (#f
>> + (format (current-error-port)
>> + "warning: failed to parse ~a~%"
>> + php-name)
>
> Does #f necessarily indicate a parse error? Couldn’t we have more
> detailed info about the error? (Not a blocker but it would be nice.)
>
Well if go through the changes, it could fail on each step of the let*,
so we could indeed be more precise, though it eventually comes down to
a fetch or parsing error. Will fix this in a later patch.
Actually I'm probably going to merge the different patches in a single
patch series, that would make it more convenient to review on your side.
>> + #f)
>> + (_
>> + (upstream-source
>
> Nitpick: I’d suggest using a plain ‘if’ rather than ‘match’ in this case
> since it’s a binary choice without destructuring.
>
> Could you send an updated patch?
>
> Thanks,
> Ludo’.
--
Best regards,
Nicolas Graves
This bug report was last modified 1 year and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.