[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52555] [RFC PATCH v2 4/5] publish: Add support for storing ERIS enc
From: |
Maxime Devos |
Subject: |
[bug#52555] [RFC PATCH v2 4/5] publish: Add support for storing ERIS encoded blocks to IPFS. |
Date: |
Sat, 29 Jan 2022 22:28:11 +0100 |
User-agent: |
Evolution 3.38.3-1 |
pukkamustard schreef op di 25-01-2022 om 19:22 [+0000]:
> + (let ((eris-urn _
> + (eris-encode port
> + #:block-size
> + %eris-block-size-large
> + #:block-reducer
> + guix-eris-block-reducer)))
> + (uri->string eris-urn))))))))
IIUC (and quite probably I don't, because I've only being reading
things cursorly), eris-encode returns #false when the IPFS daemon is
down (because then guix-eris-block-reducer returns #false).
In that case, (uri->string eris-urn) = (uri->string #false) would
throw an exception:
scheme@(guile-user)> ((@ (web uri) uri->string) #false)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct): #f
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In web/uri.scm:
336:17 1 (uri->string #f #:include-fragment? _)
In ice-9/boot-9.scm:
1669:16 0 (raise-exception _ #:continuable? _)
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#52555] [RFC PATCH v2 3/5] Add (guix eris)., (continued)
- [bug#52555] [RFC PATCH v2 1/5] WIP: gnu: guile-eris: Update to unreleased git version., pukkamustard, 2022/01/25
- [bug#52555] [RFC PATCH v2 5/5] substitute: Fetch substitutes using ERIS., pukkamustard, 2022/01/25
- [bug#52555] [RFC PATCH v2 4/5] publish: Add support for storing ERIS encoded blocks to IPFS., pukkamustard, 2022/01/25
- [bug#52555] [RFC PATCH v2 4/5] publish: Add support for storing ERIS encoded blocks to IPFS.,
Maxime Devos <=
- [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS, Maxime Devos, 2022/01/29
- [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS, Maxime Devos, 2022/01/29
- [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS, Maxime Devos, 2022/01/29
- [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS, Maxime Devos, 2022/01/30