summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2021-09-10 11:42:25 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-10 17:30:54 +0200
commitff613c2b68aac539262822490448e637d8f315ba (patch)
tree1204a31ae442454ceacb6262e62388a9b0eaacfa /scripts
parent163d6385fd4f06860726876086d92d0e81dc6442 (diff)
downloadguix-ff613c2b68aac539262822490448e637d8f315ba.tar.gz
swh: Adjust to new vault API.
Previously the path to query the vault or request cooking of a directory
was /api/1/vault/directory/ID.  It is now deprecated in favor if
/api/1/vault/flat/SWHID.  This commit adjusts code accordingly and also
prepares for 'git-bare' support.

* guix/swh.scm (vault-url): New procedure.
(query-vault, request-cooking): Make 'kind' optional, and add #:archive-type.
Use 'vault-url'.
(vault-fetch): Make 'kind' optional and add #:archive-type.  Adjust
'query-vault' and 'request-cooking' calls accordingly.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions