GNU bug report logs -
#42019
[PATCH 0/1] sources.json compliant with SWH loader
Previous Next
Reported by: zimoun <zimon.toutoune <at> gmail.com>
Date: Tue, 23 Jun 2020 15:14:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 42019 <at> debbugs.gnu.org (full text, mbox):
Hi Chris,
On Wed, 01 Jul 2020 at 20:35, Christopher Baines <mail <at> cbaines.net> wrote:
> A question maybe for you Simon, what would be the perfect data for this
> particular use case? I gather it's something about the (source ...)
> field in packages, probably for all the exported (plus maybe
> not-exported packages).
Currently the website builds source.json by using 'fold-packages'
(traversing all the modules and returning all the public variables, if I
read correctly) then excluding 'package-superseded' and
'package-replacement'.
Well, maybe an example is simpler than a lot of words. The resulting
JSON looks like:
--8<---------------cut here---------------start------------->8---
{
"type": "url",
"urls": [
"https://ftpmirror.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz",
"ftp://ftp.cs.tu-berlin.de/pub/gnu/a2ps/a2ps-4.14.tar.gz",
"ftp://ftp.funet.fi/pub/mirrors/ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz",
"http://ftp.gnu.org/pub/gnu/a2ps/a2ps-4.14.tar.gz"
],
"integrity": "sha256-866NPUVkpBtuKiHyN9LysQT0gQhZHouDSXUAGCo6s6Q="
},
{
"type": "git",
"git_url": "https://github.com/opencog/agi-bio.git",
"git_ref": "b5c6f3d99e8cca3798bf0cdf2c32f4bdb8098efb"
},
--8<---------------cut here---------------end--------------->8---
So basically, the data are: origin-method, origin-uri (implies reference
URLs and {git,hg,svn}-{commit,revision}), origin-hash (implies
content-hash-{value,algorithm}). Note that the list of mirrors are
necessary too.
I have given a look to
http://git.savannah.gnu.org/cgit/guix/data-service.git/tree/
but I am not sure to understand where the SQL table is defined.
Thanks,
simon
This bug report was last modified 4 years and 362 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.