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
Hi,
Nicolas Graves <ngraves <at> ngraves.fr> skribis:
> * guix/import/composer (latest-release): Handle parsing
> failures. Rename package to composer-package for clarity.
>
> Change-Id: I14936c2c6e6a850a32fe56891766ae92b693a295
[...]
> + (match composer-package
> + (#f
> + (format (current-error-port)
> + "warning: failed to parse ~a~%"
> + php-name)
Please use ‘warning’ from (guix diagnostics) instead.
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.)
> + #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’.
This bug report was last modified 1 year and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.