refresh can't update profanity

  • Done
  • quality assurance status badge
Details
2 participants
  • Jack Hill
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Jack Hill
Severity
normal
J
J
Jack Hill wrote on 15 Aug 2023 06:26
(address . bug-guix@gnu.org)
cbff816c-22d9-7014-4fcc-45e5ee568639@jackhill.us
I'm using ./pre-inst-env guix from commit
19a7a824c35eae56ce56e2a460042fb7e2129234. `guix refresh -u profanity`
doesn't seem to be able to find the new tarball for download. However, if
I do the update by hand, `guix build` knows how to download the tarball.
The profanity source record looks like this:

"""
(source
(origin
(method url-fetch)
(uri
(string-append
version ".tar.gz"))
(sha256
(base32
"14n45zwc6fxjargqhwqan8fyb7x0ql0hmw56rbjkjfkhpba2qmks"))))
""""

Here's refresh getting confused:

"""
$ ./pre-inst-env guix refresh -u profanity

Starting download of /tmp/guix-file.QV904d
From https:/tarballs/profanity-0.14.0.tar.gz...
In procedure connect*: Connection refused

Starting download of /tmp/guix-file.QV904d
Trying to use Disarchive to assemble /tmp/guix-file.QV904d...
could not find its Disarchive specification
failed to download "/tmp/guix-file.QV904d" from "https:/tarballs/profanity-0.14.0.tar.gz"
guix refresh: warning: profanity: version 0.14.0 could not be downloaded and authenticated; not updating
"""

Best,
Jack
M
M
Maxim Cournoyer wrote on 21 Aug 2023 22:37
(name . Jack Hill)(address . jackhill@jackhill.us)(address . 65304@debbugs.gnu.org)
87350cceti.fsf@gmail.com
Hi Jack,

Jack Hill <jackhill@jackhill.us> writes:

Toggle quote (37 lines)
> I'm using ./pre-inst-env guix from commit
> 19a7a824c35eae56ce56e2a460042fb7e2129234. `guix refresh -u profanity`
> doesn't seem to be able to find the new tarball for download. However,
> if I do the update by hand, `guix build` knows how to download the
> tarball. The profanity source record looks like this:
>
> """
> (source
> (origin
> (method url-fetch)
> (uri
> (string-append
> "https://profanity-im.github.io/tarballs/profanity-"
> version ".tar.gz"))
> (sha256
> (base32
> "14n45zwc6fxjargqhwqan8fyb7x0ql0hmw56rbjkjfkhpba2qmks"))))
> """"
>
> Here's refresh getting confused:
>
> """
> $ ./pre-inst-env guix refresh -u profanity
>
> Starting download of /tmp/guix-file.QV904d
>>From https:/tarballs/profanity-0.14.0.tar.gz...
> In procedure connect*: Connection refused
>
> Starting download of /tmp/guix-file.QV904d
>>From https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz...
> download failed "https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz" 404 "NOT FOUND"
> Trying to use Disarchive to assemble /tmp/guix-file.QV904d...
> could not find its Disarchive specification
> failed to download "/tmp/guix-file.QV904d" from "https:/tarballs/profanity-0.14.0.tar.gz"
> guix refresh: warning: profanity: version 0.14.0 could not be downloaded and authenticated; not updating
> """

Hm, it seems it was a bug when using the
release-monitoring-url property and the code in import-html-release from
(guix gnu-maintenance.)

I've tested with my series at https://issues.guix.gnu.org/65230and I'm
happy to report it resolves the issue:

Toggle snippet (7 lines)
$ ./pre-inst-env guix refresh -u profanity
Starting download of /tmp/guix-file.KoCfAY
From https://profanity-im.github.io/tarballs/profanity-0.14.0.tar.gz...
….14.0.tar.gz 914KiB 3.4MiB/s 00:00 ???????????????????? 100.0%
/home/maxim/src/guix/gnu/packages/messaging.scm:2132:13: profanity: updating from version 0.13.0 to version 0.14.0...

It could do with a review :-).

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 26 Aug 2023 22:21
Re: [PATCH v4 08/10] gnu-maintenance: Add support to rewrite version in URL path.
87r0npmu5e.fsf@gmail.com
Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (8 lines)
> Fixes <https://issues.guix.gnu.org/65304>.
>
> Previously, the generic HTML updater would only look for the list of files
> found at the parent of its current source URL, ignoring that the URL may embed
> the version elsewhere in its path. This could cause 'guix refresh' to report
> no updates available, while in fact there were, such as for 'libuv'.

I've now installed this series with commit
1dce88777691b7a38ad66ba58b17a9b368c11e07.

Closing!

--
Thanks,
Maxim
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 65304@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 65304
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch