[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42286: SWH fallback fails (git-fetch)
From: |
Ludovic Courtès |
Subject: |
bug#42286: SWH fallback fails (git-fetch) |
Date: |
Fri, 10 Jul 2020 10:07:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi!
zimoun <zimon.toutoune@gmail.com> skribis:
> On Fri, 10 Jul 2020 at 00:24, Ludovic Courtès <ludo@gnu.org> wrote:
>> Hi!
>>
>> zimoun <zimon.toutoune@gmail.com> skribis:
>>
>>> Trying to download from Software Heritage...
>>> Backtrace:
>>> 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?")
>>> In ./guix/swh.scm:
>>> 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?)
>>> 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?)
>>> In web/client.scm:
>>> 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?)
>>> 231:6 0 (tls-wrap #<closed: file 7ffff5f1b690> _ # _)
>>>
>>> web/client.scm:231:6: In procedure tls-wrap:
>>> Error while printing exception.
>>> builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv'
>>> failed with exit code 1
>>
>> Should be fixed with commit a7696b9733d4ede9817a0a0accb5ce5b85d9a2d3.
>> Let me know if anything’s amiss.
>
> Cool! Works. :-)
>
> I was almost there. :-) The missing trick was because the Guile bug
> <https://bugs.gnu.org/40486>
> I was not aware and so the new "http-get*".
Yeah. :-)
> Is it worth to add the test in guix-build.sh?
We don’t add tests that depend on external services, so we can’t really
do that. Or we would need to mock the original server, SWH, etc. but
that seems tricky.
Thanks,
Ludo’.