GNU bug report logs - #45615
Wrong type argument in "guix lint -c archival"

Previous Next

Package: guix;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Sat, 2 Jan 2021 22:15:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 45615 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 45615 <at> debbugs.gnu.org
Subject: bug#45615: SWH API break?
Date: Thu, 7 Jan 2021 16:41:46 +0100
Hi,

Thanks for the report.

It comes from 'visit-snapshot-url' returning #<unspecified> instead of
#f.  Then 'swh-url' fails because the 'path' argument is not a string.

Well, I do not how to fix it.  I am confused by:

--8<---------------cut here---------------start------------->8---
;; <https://archive.softwareheritage.org/api/1/origin/52181937/visits/>
(define-json-mapping <visit> make-visit visit?
  json->visit
  (date visit-date "date" string->date*)
  (origin visit-origin)
  (url visit-url "origin_visit_url")
  (snapshot-url visit-snapshot-url "snapshot_url" string*) ;string | #f
  (status visit-status "status" string->symbol)   ;'full | 'partial | 'ongoing
  (number visit-number "visit"))
--8<---------------cut here---------------end--------------->8---

and why it is not string or #f.

Ludo, any tips? :-)


All the best,
simon




This bug report was last modified 4 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.